(117.6ms) DROP DATABASE IF EXISTS "test_app_test"  (721.0ms) CREATE DATABASE "test_app_test" ENCODING = 'unicode' SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SQL (10.2ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"  (8.6ms) CREATE TABLE "strain_articles" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "strain_variant_id" uuid, "title" character varying NOT NULL, "body" jsonb NOT NULL, "slug" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_strain_articles_on_strain_variant_id" ON "strain_articles" USING btree ("strain_variant_id")  (4.1ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20151104200908') ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (122.6ms) DROP DATABASE IF EXISTS "test_app_test"  (796.0ms) CREATE DATABASE "test_app_test" ENCODING = 'unicode' SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SQL (9.3ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"  (5.8ms) CREATE TABLE "strain_articles" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "strain_variant_id" uuid, "title" character varying NOT NULL, "body" jsonb NOT NULL, "slug" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_strain_articles_on_strain_variant_id" ON "strain_articles" USING btree ("strain_variant_id")  (4.1ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20151104200908') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to EnableUuid (20151103060035)  (0.1ms) BEGIN SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103060035"]]  (1.4ms) COMMIT Migrating to CreateStrainVariants (20151103060224)  (0.1ms) BEGIN  (0.7ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  PG::DuplicateTable: ERROR: relation "strain_variants" already exists : CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.1ms) ROLLBACK  (4.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to EnableUuid (20151103060035)  (0.1ms) BEGIN SQL (33.0ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103060035"]]  (0.6ms) COMMIT Migrating to CreateStrainVariants (20151103060224)  (0.1ms) BEGIN  (4.9ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103060224"]]  (0.5ms) COMMIT Migrating to CreateStrainArticles (20151104200908)  (0.2ms) BEGIN  (4.1ms) CREATE TABLE "strain_articles" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "variant_id" uuid, "title" character varying NOT NULL, "body" jsonb NOT NULL, "slug" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_strain_articles_on_variant_id" ON "strain_articles" ("variant_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151104200908"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete 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 = 'strain_articles' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.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 = 'strain_variants' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (27.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-04 22:16:38.187768"], ["updated_at", "2015-11-04 22:16:38.187768"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-04 22:16:38.237421"], ["updated_at", "2015-11-04 22:16:38.237421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-04 22:16:38.261070"], ["updated_at", "2015-11-04 22:16:38.261070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-04 22:16:38.271404"], ["updated_at", "2015-11-04 22:16:38.271404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (25.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:50:27.326381"], ["updated_at", "2015-11-05 00:50:27.326381"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:50:27.378514"], ["updated_at", "2015-11-05 00:50:27.378514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:50:27.396377"], ["updated_at", "2015-11-05 00:50:27.396377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:50:27.408420"], ["updated_at", "2015-11-05 00:50:27.408420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:50:27.422881"], ["updated_at", "2015-11-05 00:50:27.422881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:50:31.741113"], ["updated_at", "2015-11-05 00:50:31.741113"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:50:31.764296"], ["updated_at", "2015-11-05 00:50:31.764296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:50:31.781594"], ["updated_at", "2015-11-05 00:50:31.781594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:50:31.837043"], ["updated_at", "2015-11-05 00:50:31.837043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:50:31.849968"], ["updated_at", "2015-11-05 00:50:31.849968"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (25.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:54:06.700605"], ["updated_at", "2015-11-05 00:54:06.700605"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:54:06.745481"], ["updated_at", "2015-11-05 00:54:06.745481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:54:06.762765"], ["updated_at", "2015-11-05 00:54:06.762765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:54:06.775917"], ["updated_at", "2015-11-05 00:54:06.775917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 00:54:06.786457"], ["updated_at", "2015-11-05 00:54:06.786457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (28.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:35:49.743773"], ["updated_at", "2015-11-05 04:35:49.743773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:35:49.791835"], ["updated_at", "2015-11-05 04:35:49.791835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:35:49.808171"], ["updated_at", "2015-11-05 04:35:49.808171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:35:49.822853"], ["updated_at", "2015-11-05 04:35:49.822853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:35:49.839136"], ["updated_at", "2015-11-05 04:35:49.839136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:35:49.850648"], ["updated_at", "2015-11-05 04:35:49.850648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "1a037c14-39f4-4d9a-a1a9-f8a0fea716df"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:35:49.853600"], ["updated_at", "2015-11-05 04:35:49.853600"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:35:49.866679"], ["updated_at", "2015-11-05 04:35:49.866679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:13.822769"], ["updated_at", "2015-11-05 04:36:13.822769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:13.846868"], ["updated_at", "2015-11-05 04:36:13.846868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:13.863835"], ["updated_at", "2015-11-05 04:36:13.863835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:13.882496"], ["updated_at", "2015-11-05 04:36:13.882496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:13.894041"], ["updated_at", "2015-11-05 04:36:13.894041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:13.903861"], ["updated_at", "2015-11-05 04:36:13.903861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "ed42d0b4-a13a-4771-aefd-d0ba384c30b5"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:36:13.906835"], ["updated_at", "2015-11-05 04:36:13.906835"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:13.919653"], ["updated_at", "2015-11-05 04:36:13.919653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (5.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:32.735379"], ["updated_at", "2015-11-05 04:36:32.735379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:32.760930"], ["updated_at", "2015-11-05 04:36:32.760930"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:32.779773"], ["updated_at", "2015-11-05 04:36:32.779773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:32.794436"], ["updated_at", "2015-11-05 04:36:32.794436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:32.805061"], ["updated_at", "2015-11-05 04:36:32.805061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:32.816014"], ["updated_at", "2015-11-05 04:36:32.816014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "67853417-4f1d-4a4c-88d6-1ed837689f1a"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:36:32.819220"], ["updated_at", "2015-11-05 04:36:32.819220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:36:32.827088"], ["updated_at", "2015-11-05 04:36:32.827088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (5025.9ms) DROP DATABASE IF EXISTS "test_app_test" PG::ObjectInUse: ERROR: database "test_app_test" is being accessed by other users DETAIL: There is 1 other session using the database. : DROP DATABASE IF EXISTS "test_app_test"  (0.7ms) CREATE DATABASE "test_app_test" ENCODING = 'unicode' PG::DuplicateDatabase: ERROR: database "test_app_test" already exists : CREATE DATABASE "test_app_test" ENCODING = 'unicode' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"  (6.1ms) DROP TABLE "strain_articles" CASCADE  (6.4ms) CREATE TABLE "strain_articles" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "variant_id" uuid, "title" character varying NOT NULL, "body" jsonb NOT NULL, "slug" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE INDEX "index_strain_articles_on_variant_id" ON "strain_articles" USING btree ("variant_id")  (2.6ms) DROP TABLE "strain_variants" CASCADE  (3.7ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.4ms) SELECT version FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (124.9ms) DROP DATABASE IF EXISTS "test_app_test"  (673.8ms) CREATE DATABASE "test_app_test" ENCODING = 'unicode' SQL (0.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SQL (9.0ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"  (6.5ms) CREATE TABLE "strain_articles" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "variant_id" uuid, "title" character varying NOT NULL, "body" jsonb NOT NULL, "slug" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_strain_articles_on_variant_id" ON "strain_articles" USING btree ("variant_id")  (4.3ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20151104200908')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151103060035')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151103060224') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (5.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:48:18.922854"], ["updated_at", "2015-11-05 04:48:18.922854"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:48:18.953478"], ["updated_at", "2015-11-05 04:48:18.953478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:48:18.963551"], ["updated_at", "2015-11-05 04:48:18.963551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:48:18.975449"], ["updated_at", "2015-11-05 04:48:18.975449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:48:18.985940"], ["updated_at", "2015-11-05 04:48:18.985940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:48:18.995788"], ["updated_at", "2015-11-05 04:48:18.995788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "5f6fc95d-19db-411f-9071-f93f8fb15064"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:48:18.999013"], ["updated_at", "2015-11-05 04:48:18.999013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:48:19.008128"], ["updated_at", "2015-11-05 04:48:19.008128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:01.958996"], ["updated_at", "2015-11-05 04:49:01.958996"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:01.986059"], ["updated_at", "2015-11-05 04:49:01.986059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:02.003823"], ["updated_at", "2015-11-05 04:49:02.003823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:02.016300"], ["updated_at", "2015-11-05 04:49:02.016300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:02.026679"], ["updated_at", "2015-11-05 04:49:02.026679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:02.037260"], ["updated_at", "2015-11-05 04:49:02.037260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "95cbe653-4906-47c8-a5ad-80ab495acb16"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:49:02.040272"], ["updated_at", "2015-11-05 04:49:02.040272"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:02.051819"], ["updated_at", "2015-11-05 04:49:02.051819"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:51.315943"], ["updated_at", "2015-11-05 04:49:51.315943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:51.337690"], ["updated_at", "2015-11-05 04:49:51.337690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:51.355797"], ["updated_at", "2015-11-05 04:49:51.355797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:51.375121"], ["updated_at", "2015-11-05 04:49:51.375121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:51.386912"], ["updated_at", "2015-11-05 04:49:51.386912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:51.402876"], ["updated_at", "2015-11-05 04:49:51.402876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "ee3262e6-aae9-425d-8be7-30200e527fe3"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:49:51.407365"], ["updated_at", "2015-11-05 04:49:51.407365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:51.415547"], ["updated_at", "2015-11-05 04:49:51.415547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "cf99c694-234a-40ac-b9e3-c3540347ba68"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:49:51.419619"], ["updated_at", "2015-11-05 04:49:51.419619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:51.456748"], ["updated_at", "2015-11-05 04:49:51.456748"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "7086c158-8f69-43ed-8f78-ce98d1e27f29"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:49:51.460761"], ["updated_at", "2015-11-05 04:49:51.460761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:49:51.469981"], ["updated_at", "2015-11-05 04:49:51.469981"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:10.316400"], ["updated_at", "2015-11-05 04:51:10.316400"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:10.336904"], ["updated_at", "2015-11-05 04:51:10.336904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:10.352529"], ["updated_at", "2015-11-05 04:51:10.352529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:10.364958"], ["updated_at", "2015-11-05 04:51:10.364958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:10.375013"], ["updated_at", "2015-11-05 04:51:10.375013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:10.385126"], ["updated_at", "2015-11-05 04:51:10.385126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "7b68b846-4b42-4f18-b4bd-661eefab8b89"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:51:10.389086"], ["updated_at", "2015-11-05 04:51:10.389086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:10.399125"], ["updated_at", "2015-11-05 04:51:10.399125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "bd8f10df-8073-4c52-9cea-449ea85186b0"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:51:10.402051"], ["updated_at", "2015-11-05 04:51:10.402051"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:10.427236"], ["updated_at", "2015-11-05 04:51:10.427236"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "73fd740b-c837-45cc-958f-e9fadba10933"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:51:10.431820"], ["updated_at", "2015-11-05 04:51:10.431820"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:10.443003"], ["updated_at", "2015-11-05 04:51:10.443003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:43.325323"], ["updated_at", "2015-11-05 04:51:43.325323"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:43.355438"], ["updated_at", "2015-11-05 04:51:43.355438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:43.373385"], ["updated_at", "2015-11-05 04:51:43.373385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:43.386010"], ["updated_at", "2015-11-05 04:51:43.386010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:43.397230"], ["updated_at", "2015-11-05 04:51:43.397230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:51:43.407918"], ["updated_at", "2015-11-05 04:51:43.407918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "eb9ef6c2-c952-497c-932d-378b5ad01fb4"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:51:43.411497"], ["updated_at", "2015-11-05 04:51:43.411497"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:52:08.970377"], ["updated_at", "2015-11-05 04:52:08.970377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "6d6b9fe6-e86b-4c82-bc72-a5a24d11a194"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:52:08.974750"], ["updated_at", "2015-11-05 04:52:08.974750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Load (6.7ms) SELECT "strain_articles".* FROM "strain_articles"  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:52:44.504676"], ["updated_at", "2015-11-05 04:52:44.504676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "d2db8ab3-5747-4253-99db-c3945095a4b1"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:52:44.507707"], ["updated_at", "2015-11-05 04:52:44.507707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:52:44.552635"], ["updated_at", "2015-11-05 04:52:44.552635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "6cd98334-927c-40df-80e1-9f7f12593dc0"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:52:44.557119"], ["updated_at", "2015-11-05 04:52:44.557119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:52:44.565305"], ["updated_at", "2015-11-05 04:52:44.565305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (4.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to EnableUuid (20151103060035)  (0.1ms) BEGIN SQL (5.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp" SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103060035"]]  (0.8ms) COMMIT Migrating to CreateStrainVariants (20151103060224)  (0.1ms) BEGIN  (4.4ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "index_articles_on_name" ON "articles" ("name") PG::UndefinedTable: ERROR: relation "articles" does not exist : CREATE UNIQUE INDEX "index_articles_on_name" ON "articles" ("name")  (0.1ms) ROLLBACK  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to EnableUuid (20151103060035)  (0.1ms) BEGIN SQL (4.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103060035"]]  (0.6ms) COMMIT Migrating to CreateStrainVariants (20151103060224)  (0.1ms) BEGIN  (4.6ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "index_articles_on_name" ON "articles" ("name") PG::UndefinedTable: ERROR: relation "articles" does not exist : CREATE UNIQUE INDEX "index_articles_on_name" ON "articles" ("name")  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateStrainVariants (20151103060224)  (0.2ms) BEGIN  (12.8ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "index_strain_variants_on_name" ON "strain_variants" ("name") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103060224"]]  (0.6ms) COMMIT Migrating to CreateStrainArticles (20151104200908)  (0.1ms) BEGIN  (4.0ms) CREATE TABLE "strain_articles" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "variant_id" uuid, "title" character varying NOT NULL, "body" jsonb NOT NULL, "slug" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_strain_articles_on_variant_id" ON "strain_articles" ("variant_id")  (1.3ms) CREATE UNIQUE INDEX "index_strain_articles_on_slug" ON "strain_articles" ("slug") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151104200908"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.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 = 'strain_articles' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.2ms) 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 = 'strain_variants' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:55:39.452683"], ["updated_at", "2015-11-05 04:55:39.452683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:55:39.474286"], ["updated_at", "2015-11-05 04:55:39.474286"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:55:39.492842"], ["updated_at", "2015-11-05 04:55:39.492842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:55:39.506606"], ["updated_at", "2015-11-05 04:55:39.506606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:55:39.518530"], ["updated_at", "2015-11-05 04:55:39.518530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:55:39.528965"], ["updated_at", "2015-11-05 04:55:39.528965"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "c8a93aee-0ef8-46ee-b1ed-dced827300b7"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:55:39.533042"], ["updated_at", "2015-11-05 04:55:39.533042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:55:45.994682"], ["updated_at", "2015-11-05 04:55:45.994682"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (1.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:55:46.007950"], ["updated_at", "2015-11-05 04:55:46.007950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "79ccd5ca-af22-478c-a608-21915847d088"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:55:46.011722"], ["updated_at", "2015-11-05 04:55:46.011722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:55:46.020672"], ["updated_at", "2015-11-05 04:55:46.020672"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:56:01.521287"], ["updated_at", "2015-11-05 04:56:01.521287"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:56:01.544361"], ["updated_at", "2015-11-05 04:56:01.544361"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:56:01.565067"], ["updated_at", "2015-11-05 04:56:01.565067"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:56:01.577349"], ["updated_at", "2015-11-05 04:56:01.577349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:56:01.587993"], ["updated_at", "2015-11-05 04:56:01.587993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:56:01.599133"], ["updated_at", "2015-11-05 04:56:01.599133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "8b039625-f7cb-43c2-9efb-9e7b6faa62ff"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:56:01.602365"], ["updated_at", "2015-11-05 04:56:01.602365"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:56:20.369931"], ["updated_at", "2015-11-05 04:56:20.369931"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:09.922808"], ["updated_at", "2015-11-05 04:57:09.922808"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:09.943152"], ["updated_at", "2015-11-05 04:57:09.943152"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "70996af8-6bf1-48eb-92fa-6efd24870fb7"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:57:09.946744"], ["updated_at", "2015-11-05 04:57:09.946744"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:09.956069"], ["updated_at", "2015-11-05 04:57:09.956069"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:14.677452"], ["updated_at", "2015-11-05 04:57:14.677452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:14.701706"], ["updated_at", "2015-11-05 04:57:14.701706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:14.719504"], ["updated_at", "2015-11-05 04:57:14.719504"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:14.736365"], ["updated_at", "2015-11-05 04:57:14.736365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:14.747035"], ["updated_at", "2015-11-05 04:57:14.747035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:14.757122"], ["updated_at", "2015-11-05 04:57:14.757122"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "f55856ed-0025-4f90-bccf-debc51e2fb20"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:57:14.762170"], ["updated_at", "2015-11-05 04:57:14.762170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:14.775736"], ["updated_at", "2015-11-05 04:57:14.775736"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:14.785309"], ["updated_at", "2015-11-05 04:57:14.785309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "9ac4d064-6e3b-4202-8463-1f52afa421e4"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:57:14.788576"], ["updated_at", "2015-11-05 04:57:14.788576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:57:14.795824"], ["updated_at", "2015-11-05 04:57:14.795824"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:01.504508"], ["updated_at", "2015-11-05 04:59:01.504508"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (4.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:01.551382"], ["updated_at", "2015-11-05 04:59:01.551382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:01.572983"], ["updated_at", "2015-11-05 04:59:01.572983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:01.592835"], ["updated_at", "2015-11-05 04:59:01.592835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:01.603768"], ["updated_at", "2015-11-05 04:59:01.603768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:01.619181"], ["updated_at", "2015-11-05 04:59:01.619181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "aca1f9e5-a96d-4723-80bc-f4d639ad2939"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:59:01.625647"], ["updated_at", "2015-11-05 04:59:01.625647"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:01.638120"], ["updated_at", "2015-11-05 04:59:01.638120"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:01.651540"], ["updated_at", "2015-11-05 04:59:01.651540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "142fd61b-e54d-4e3d-bd78-bfe3aca5c137"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:59:01.656915"], ["updated_at", "2015-11-05 04:59:01.656915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:01.664483"], ["updated_at", "2015-11-05 04:59:01.664483"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:56.484289"], ["updated_at", "2015-11-05 04:59:56.484289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:56.518953"], ["updated_at", "2015-11-05 04:59:56.518953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:56.538307"], ["updated_at", "2015-11-05 04:59:56.538307"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:56.560456"], ["updated_at", "2015-11-05 04:59:56.560456"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:56.577023"], ["updated_at", "2015-11-05 04:59:56.577023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:56.588967"], ["updated_at", "2015-11-05 04:59:56.588967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "59f8019a-0079-411f-bc3f-60f06ba7df96"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:59:56.593285"], ["updated_at", "2015-11-05 04:59:56.593285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:56.605741"], ["updated_at", "2015-11-05 04:59:56.605741"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:56.621770"], ["updated_at", "2015-11-05 04:59:56.621770"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "2a9030bf-9fae-4d9e-9467-507ddbbfa0f1"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 04:59:56.628440"], ["updated_at", "2015-11-05 04:59:56.628440"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 04:59:56.636794"], ["updated_at", "2015-11-05 04:59:56.636794"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:00:00.639174"], ["updated_at", "2015-11-05 05:00:00.639174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:00:00.669064"], ["updated_at", "2015-11-05 05:00:00.669064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:00:00.690955"], ["updated_at", "2015-11-05 05:00:00.690955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:00:00.708145"], ["updated_at", "2015-11-05 05:00:00.708145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:00:00.722441"], ["updated_at", "2015-11-05 05:00:00.722441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:00:00.734349"], ["updated_at", "2015-11-05 05:00:00.734349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "15761e42-eac4-4c2c-a915-c945b78dc9ab"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:00:00.738714"], ["updated_at", "2015-11-05 05:00:00.738714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:00:00.748530"], ["updated_at", "2015-11-05 05:00:00.748530"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:00:00.757679"], ["updated_at", "2015-11-05 05:00:00.757679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "06706429-a77f-42ce-8343-2b41e53f4f10"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:00:00.761632"], ["updated_at", "2015-11-05 05:00:00.761632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:00:00.769142"], ["updated_at", "2015-11-05 05:00:00.769142"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:27.701142"], ["updated_at", "2015-11-05 05:03:27.701142"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.2ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:27.737638"], ["updated_at", "2015-11-05 05:03:27.737638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:27.756486"], ["updated_at", "2015-11-05 05:03:27.756486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:27.772195"], ["updated_at", "2015-11-05 05:03:27.772195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:27.784018"], ["updated_at", "2015-11-05 05:03:27.784018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:27.795644"], ["updated_at", "2015-11-05 05:03:27.795644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "a05652c7-2ce1-4311-ad70-addc3ae921a7"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:03:27.800408"], ["updated_at", "2015-11-05 05:03:27.800408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:27.810372"], ["updated_at", "2015-11-05 05:03:27.810372"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:27.820237"], ["updated_at", "2015-11-05 05:03:27.820237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "8f295c5e-5693-427b-b119-bb6f0120c22d"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:03:27.824366"], ["updated_at", "2015-11-05 05:03:27.824366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:27.833114"], ["updated_at", "2015-11-05 05:03:27.833114"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:32.907534"], ["updated_at", "2015-11-05 05:03:32.907534"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:32.943214"], ["updated_at", "2015-11-05 05:03:32.943214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:32.959780"], ["updated_at", "2015-11-05 05:03:32.959780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:32.978890"], ["updated_at", "2015-11-05 05:03:32.978890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:32.989761"], ["updated_at", "2015-11-05 05:03:32.989761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:33.001679"], ["updated_at", "2015-11-05 05:03:33.001679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "5607cbd1-4c95-4ff2-a66e-2fa13c44c4e8"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:03:33.005979"], ["updated_at", "2015-11-05 05:03:33.005979"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:33.019782"], ["updated_at", "2015-11-05 05:03:33.019782"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:33.028808"], ["updated_at", "2015-11-05 05:03:33.028808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "9f833419-8fc3-43f2-b1b4-19ef1524d652"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:03:33.032807"], ["updated_at", "2015-11-05 05:03:33.032807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:03:33.040439"], ["updated_at", "2015-11-05 05:03:33.040439"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (122.2ms) DROP DATABASE IF EXISTS "test_app_test"  (679.2ms) CREATE DATABASE "test_app_test" ENCODING = 'unicode' SQL (0.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" SQL (6.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"  (7.0ms) CREATE TABLE "strain_articles" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "variant_id" uuid, "title" character varying NOT NULL, "body" jsonb NOT NULL, "slug" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE UNIQUE INDEX "index_strain_articles_on_slug" ON "strain_articles" USING btree ("slug")  (1.4ms) CREATE INDEX "index_strain_articles_on_variant_id" ON "strain_articles" USING btree ("variant_id")  (4.0ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "index_strain_variants_on_name" ON "strain_variants" USING btree ("name")  (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20151104200908')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20151103060035')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20151103060224') 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  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:14.660122"], ["updated_at", "2015-11-05 05:04:14.660122"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:14.698110"], ["updated_at", "2015-11-05 05:04:14.698110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:14.714787"], ["updated_at", "2015-11-05 05:04:14.714787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:14.732014"], ["updated_at", "2015-11-05 05:04:14.732014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:14.744225"], ["updated_at", "2015-11-05 05:04:14.744225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:14.754970"], ["updated_at", "2015-11-05 05:04:14.754970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "0e735168-3803-4d65-99b8-81061d96c962"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:04:14.759683"], ["updated_at", "2015-11-05 05:04:14.759683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:14.770392"], ["updated_at", "2015-11-05 05:04:14.770392"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:14.781092"], ["updated_at", "2015-11-05 05:04:14.781092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "56161358-2505-4643-90fd-79c426ba4c26"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:04:14.784914"], ["updated_at", "2015-11-05 05:04:14.784914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:14.796257"], ["updated_at", "2015-11-05 05:04:14.796257"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:31.995070"], ["updated_at", "2015-11-05 05:04:31.995070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:32.022848"], ["updated_at", "2015-11-05 05:04:32.022848"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:32.040323"], ["updated_at", "2015-11-05 05:04:32.040323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:32.055238"], ["updated_at", "2015-11-05 05:04:32.055238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:32.067749"], ["updated_at", "2015-11-05 05:04:32.067749"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:32.081310"], ["updated_at", "2015-11-05 05:04:32.081310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "94d06857-e9c6-4266-95fb-2f296afed676"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:04:32.085353"], ["updated_at", "2015-11-05 05:04:32.085353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles"  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:44.435495"], ["updated_at", "2015-11-05 05:04:44.435495"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:44.457976"], ["updated_at", "2015-11-05 05:04:44.457976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "060b3364-2406-4ee4-9ff7-70d515d505c4"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:04:44.463477"], ["updated_at", "2015-11-05 05:04:44.463477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:44.471995"], ["updated_at", "2015-11-05 05:04:44.471995"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:53.112253"], ["updated_at", "2015-11-05 05:04:53.112253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:53.149129"], ["updated_at", "2015-11-05 05:04:53.149129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:53.167529"], ["updated_at", "2015-11-05 05:04:53.167529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:53.186045"], ["updated_at", "2015-11-05 05:04:53.186045"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:53.197703"], ["updated_at", "2015-11-05 05:04:53.197703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:53.210059"], ["updated_at", "2015-11-05 05:04:53.210059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "57f8034b-c170-4010-a296-f146749043f1"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:04:53.215034"], ["updated_at", "2015-11-05 05:04:53.215034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:53.224828"], ["updated_at", "2015-11-05 05:04:53.224828"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:53.238739"], ["updated_at", "2015-11-05 05:04:53.238739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "775b02e5-40e3-4e8b-ba68-f9c1fd4f3a83"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:04:53.243637"], ["updated_at", "2015-11-05 05:04:53.243637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:53.250791"], ["updated_at", "2015-11-05 05:04:53.250791"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:56.720765"], ["updated_at", "2015-11-05 05:04:56.720765"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:56.752119"], ["updated_at", "2015-11-05 05:04:56.752119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:56.772931"], ["updated_at", "2015-11-05 05:04:56.772931"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:56.788107"], ["updated_at", "2015-11-05 05:04:56.788107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:56.803503"], ["updated_at", "2015-11-05 05:04:56.803503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:56.815469"], ["updated_at", "2015-11-05 05:04:56.815469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "3dcb9563-e4a5-4447-8be2-296eb6760293"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:04:56.819983"], ["updated_at", "2015-11-05 05:04:56.819983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:56.833205"], ["updated_at", "2015-11-05 05:04:56.833205"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:56.842181"], ["updated_at", "2015-11-05 05:04:56.842181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "a7f85272-6fc6-44ef-b7e5-17ef6233ce68"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:04:56.846334"], ["updated_at", "2015-11-05 05:04:56.846334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:04:56.853248"], ["updated_at", "2015-11-05 05:04:56.853248"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (5.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:17:31.395504"], ["updated_at", "2015-11-05 05:17:31.395504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:17:31.437062"], ["updated_at", "2015-11-05 05:17:31.437062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:17:31.457146"], ["updated_at", "2015-11-05 05:17:31.457146"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:17:31.472306"], ["updated_at", "2015-11-05 05:17:31.472306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:17:31.483830"], ["updated_at", "2015-11-05 05:17:31.483830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:17:31.494633"], ["updated_at", "2015-11-05 05:17:31.494633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "97ebffc8-34dd-45ee-a6fd-c33e60a7c2f1"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:17:31.498853"], ["updated_at", "2015-11-05 05:17:31.498853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:17:31.508554"], ["updated_at", "2015-11-05 05:17:31.508554"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:17:31.518232"], ["updated_at", "2015-11-05 05:17:31.518232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "1980c1e5-037c-4be1-a11e-32d8780f39b5"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:17:31.522917"], ["updated_at", "2015-11-05 05:17:31.522917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:17:37.815960"], ["updated_at", "2015-11-05 05:17:37.815960"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Strain::Article Load (0.6ms) SELECT "strain_articles".* FROM "strain_articles" Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants"  (1.2ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:03.965969"], ["updated_at", "2015-11-05 05:35:03.965969"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:10.817271"], ["updated_at", "2015-11-05 05:35:10.817271"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:10.849241"], ["updated_at", "2015-11-05 05:35:10.849241"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:10.872748"], ["updated_at", "2015-11-05 05:35:10.872748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:10.887659"], ["updated_at", "2015-11-05 05:35:10.887659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:10.900053"], ["updated_at", "2015-11-05 05:35:10.900053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:10.912485"], ["updated_at", "2015-11-05 05:35:10.912485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "6208256c-4c09-48af-92ac-458995632f7d"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:35:10.916778"], ["updated_at", "2015-11-05 05:35:10.916778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:10.926603"], ["updated_at", "2015-11-05 05:35:10.926603"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:10.940888"], ["updated_at", "2015-11-05 05:35:10.940888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "4864a8f3-2001-46af-81d6-12d098bba9e5"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:35:10.945543"], ["updated_at", "2015-11-05 05:35:10.945543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Load (2.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:20.859121"], ["updated_at", "2015-11-05 05:35:20.859121"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:20.891277"], ["updated_at", "2015-11-05 05:35:20.891277"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:20.917348"], ["updated_at", "2015-11-05 05:35:20.917348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:20.931665"], ["updated_at", "2015-11-05 05:35:20.931665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:20.946380"], ["updated_at", "2015-11-05 05:35:20.946380"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:20.961479"], ["updated_at", "2015-11-05 05:35:20.961479"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "aa89d0ad-73ed-489f-bee0-9b5ab42592aa"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:35:20.966782"], ["updated_at", "2015-11-05 05:35:20.966782"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:20.978645"], ["updated_at", "2015-11-05 05:35:20.978645"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:20.991259"], ["updated_at", "2015-11-05 05:35:20.991259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "3dff3538-33d5-4320-aed0-3b51e5d987dd"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:35:20.996126"], ["updated_at", "2015-11-05 05:35:20.996126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC LIMIT 1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:33.979943"], ["updated_at", "2015-11-05 05:35:33.979943"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:34.018353"], ["updated_at", "2015-11-05 05:35:34.018353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:34.034866"], ["updated_at", "2015-11-05 05:35:34.034866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:34.052487"], ["updated_at", "2015-11-05 05:35:34.052487"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:34.064949"], ["updated_at", "2015-11-05 05:35:34.064949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:34.076182"], ["updated_at", "2015-11-05 05:35:34.076182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "5f6d27d3-1955-40f6-b0f1-82304edc8461"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:35:34.080332"], ["updated_at", "2015-11-05 05:35:34.080332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:34.090498"], ["updated_at", "2015-11-05 05:35:34.090498"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 05:35:34.100143"], ["updated_at", "2015-11-05 05:35:34.100143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "4adee2ce-db33-4abe-bdf0-5c0bb2d5d7bc"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 05:35:34.104717"], ["updated_at", "2015-11-05 05:35:34.104717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (4.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:02:06.717625"], ["updated_at", "2015-11-05 06:02:06.717625"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "2580d330-887f-40f4-a006-0888105cea21"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 06:02:06.749767"], ["updated_at", "2015-11-05 06:02:06.749767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:02:06.793935"], ["updated_at", "2015-11-05 06:02:06.793935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "a624da59-266c-4470-8352-a7ed3d57dee7"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 06:02:06.798387"], ["updated_at", "2015-11-05 06:02:06.798387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:04:11.243764"], ["updated_at", "2015-11-05 06:04:11.243764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "b5788068-f44e-49c9-9eb3-314f2b84469e"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 06:04:11.266045"], ["updated_at", "2015-11-05 06:04:11.266045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "b5788068-f44e-49c9-9eb3-314f2b84469e"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 06:04:11.273619"], ["updated_at", "2015-11-05 06:04:11.273619"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:04:11.287981"], ["updated_at", "2015-11-05 06:04:11.287981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("variant_id", "title", "body", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["variant_id", "d5583671-e645-4073-9669-2ec72b92091b"], ["title", "Test Article"], ["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["created_at", "2015-11-05 06:04:11.292077"], ["updated_at", "2015-11-05 06:04:11.292077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (28.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:09:11.805973"], ["updated_at", "2015-11-05 06:09:11.805973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "59526d94-0574-4305-b5d5-455adba81003"], ["created_at", "2015-11-05 06:09:11.858884"], ["updated_at", "2015-11-05 06:09:11.858884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "59526d94-0574-4305-b5d5-455adba81003"], ["created_at", "2015-11-05 06:09:11.863972"], ["updated_at", "2015-11-05 06:09:11.863972"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:09:11.873436"], ["updated_at", "2015-11-05 06:09:11.873436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5f1c5e4b-8fbd-4e29-9681-9d62e6f64826"], ["created_at", "2015-11-05 06:09:11.877381"], ["updated_at", "2015-11-05 06:09:11.877381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (5.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:14:08.692380"], ["updated_at", "2015-11-05 06:14:08.692380"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:14:08.728792"], ["updated_at", "2015-11-05 06:14:08.728792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:14:08.752491"], ["updated_at", "2015-11-05 06:14:08.752491"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:14:08.766124"], ["updated_at", "2015-11-05 06:14:08.766124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:14:08.781765"], ["updated_at", "2015-11-05 06:14:08.781765"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:14:08.795195"], ["updated_at", "2015-11-05 06:14:08.795195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "26a75367-1104-4a6e-addc-efa0b4e2f448"], ["created_at", "2015-11-05 06:14:08.799013"], ["updated_at", "2015-11-05 06:14:08.799013"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "26a75367-1104-4a6e-addc-efa0b4e2f448"], ["created_at", "2015-11-05 06:14:08.808140"], ["updated_at", "2015-11-05 06:14:08.808140"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:14:08.822209"], ["updated_at", "2015-11-05 06:14:08.822209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "115b1df4-6449-487e-9b68-5c74e94e260c"], ["created_at", "2015-11-05 06:14:08.826336"], ["updated_at", "2015-11-05 06:14:08.826336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:15:07.272504"], ["updated_at", "2015-11-05 06:15:07.272504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:15:07.285085"], ["updated_at", "2015-11-05 06:15:07.285085"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (4.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:15:34.757460"], ["updated_at", "2015-11-05 06:15:34.757460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:15:34.770667"], ["updated_at", "2015-11-05 06:15:34.770667"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:15:34.794071"], ["updated_at", "2015-11-05 06:15:34.794071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2a9bdffd-5f6e-4bc4-b7ea-a9f5c6842a93"], ["created_at", "2015-11-05 06:15:34.814503"], ["updated_at", "2015-11-05 06:15:34.814503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:15:58.534412"], ["updated_at", "2015-11-05 06:15:58.534412"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:15:58.547193"], ["updated_at", "2015-11-05 06:15:58.547193"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:15:58.556674"], ["updated_at", "2015-11-05 06:15:58.556674"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:16:51.361604"], ["updated_at", "2015-11-05 06:16:51.361604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:16:51.367346"], ["updated_at", "2015-11-05 06:16:51.367346"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-05 06:16:51.379115"], ["updated_at", "2015-11-05 06:16:51.379115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (1.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (6.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (24.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (74.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:37:27.114037"], ["updated_at", "2015-11-06 06:37:27.114037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.2ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:37:27.223772"], ["updated_at", "2015-11-06 06:37:27.223772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:37:27.246015"], ["updated_at", "2015-11-06 06:37:27.246015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:37:27.262057"], ["updated_at", "2015-11-06 06:37:27.262057"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:37:27.275723"], ["updated_at", "2015-11-06 06:37:27.275723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:37:27.288876"], ["updated_at", "2015-11-06 06:37:27.288876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e0c7b895-bd6b-487b-92c8-eb1c7b98431a"], ["created_at", "2015-11-06 06:37:27.293055"], ["updated_at", "2015-11-06 06:37:27.293055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e0c7b895-bd6b-487b-92c8-eb1c7b98431a"], ["created_at", "2015-11-06 06:37:27.298475"], ["updated_at", "2015-11-06 06:37:27.298475"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (4.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:37:27.320309"], ["updated_at", "2015-11-06 06:37:27.320309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "bec409a5-9f66-4f42-ac90-6f8134d6f8ac"], ["created_at", "2015-11-06 06:37:27.324206"], ["updated_at", "2015-11-06 06:37:27.324206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:37:27.373153"], ["updated_at", "2015-11-06 06:37:27.373153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:37:27.376383"], ["updated_at", "2015-11-06 06:37:27.376383"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:37:27.386055"], ["updated_at", "2015-11-06 06:37:27.386055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:38:36.552865"], ["updated_at", "2015-11-06 06:38:36.552865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:38:36.574720"], ["updated_at", "2015-11-06 06:38:36.574720"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:38:36.602447"], ["updated_at", "2015-11-06 06:38:36.602447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:38:36.618652"], ["updated_at", "2015-11-06 06:38:36.618652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:38:36.633348"], ["updated_at", "2015-11-06 06:38:36.633348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:38:36.647716"], ["updated_at", "2015-11-06 06:38:36.647716"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4bc60dd0-cb3c-4caf-81ec-b5ee8bc0f9fa"], ["created_at", "2015-11-06 06:38:36.652519"], ["updated_at", "2015-11-06 06:38:36.652519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4bc60dd0-cb3c-4caf-81ec-b5ee8bc0f9fa"], ["created_at", "2015-11-06 06:38:36.658751"], ["updated_at", "2015-11-06 06:38:36.658751"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:38:36.670035"], ["updated_at", "2015-11-06 06:38:36.670035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e2e0a099-0a42-42cc-a1c4-cd62648b8959"], ["created_at", "2015-11-06 06:38:36.673777"], ["updated_at", "2015-11-06 06:38:36.673777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:38:36.719419"], ["updated_at", "2015-11-06 06:38:36.719419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:38:36.722676"], ["updated_at", "2015-11-06 06:38:36.722676"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:38:36.732631"], ["updated_at", "2015-11-06 06:38:36.732631"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:42:10.304163"], ["updated_at", "2015-11-06 06:42:10.304163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:42:10.332393"], ["updated_at", "2015-11-06 06:42:10.332393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:42:10.357827"], ["updated_at", "2015-11-06 06:42:10.357827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:42:10.379404"], ["updated_at", "2015-11-06 06:42:10.379404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:42:10.391776"], ["updated_at", "2015-11-06 06:42:10.391776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:42:10.404338"], ["updated_at", "2015-11-06 06:42:10.404338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1871875b-2f5d-470c-a6a9-65c0b0372256"], ["created_at", "2015-11-06 06:42:10.408548"], ["updated_at", "2015-11-06 06:42:10.408548"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1871875b-2f5d-470c-a6a9-65c0b0372256"], ["created_at", "2015-11-06 06:42:10.415019"], ["updated_at", "2015-11-06 06:42:10.415019"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:42:10.426276"], ["updated_at", "2015-11-06 06:42:10.426276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cdf9a3fb-ad7f-49c5-8df0-0c34a0c6978b"], ["created_at", "2015-11-06 06:42:10.429881"], ["updated_at", "2015-11-06 06:42:10.429881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:42:10.475456"], ["updated_at", "2015-11-06 06:42:10.475456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:42:10.478196"], ["updated_at", "2015-11-06 06:42:10.478196"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 06:42:10.491659"], ["updated_at", "2015-11-06 06:42:10.491659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 01:43:15 -0500  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 01:47:29 -0500  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 01:47:39 -0500  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 01:49:17 -0500  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 01:50:18 -0500  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 01:50:32 -0500  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 01:51:19 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 01:51:53 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 01:52:40 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.1ms) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 13:36:10 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 13:42:47 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 13:42:51 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 13:43:03 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 13:44:29 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 13:45:49 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 13:51:13 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 13:51:27 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (6.9ms) SAVEPOINT active_record_1 Strain::Variant Exists (24.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (72.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:48:37.691239"], ["updated_at", "2015-11-06 19:48:37.691239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:48:37.797972"], ["updated_at", "2015-11-06 19:48:37.797972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:48:37.820019"], ["updated_at", "2015-11-06 19:48:37.820019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:48:37.836143"], ["updated_at", "2015-11-06 19:48:37.836143"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:48:37.849978"], ["updated_at", "2015-11-06 19:48:37.849978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:48:37.867197"], ["updated_at", "2015-11-06 19:48:37.867197"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e1a87ea4-ebf2-424b-b44d-743d7a22298a"], ["created_at", "2015-11-06 19:48:37.871538"], ["updated_at", "2015-11-06 19:48:37.871538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e1a87ea4-ebf2-424b-b44d-743d7a22298a"], ["created_at", "2015-11-06 19:48:37.876923"], ["updated_at", "2015-11-06 19:48:37.876923"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (5.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:48:37.897926"], ["updated_at", "2015-11-06 19:48:37.897926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3ae67ade-a535-4328-a0ab-c4c5924cbe62"], ["created_at", "2015-11-06 19:48:37.901428"], ["updated_at", "2015-11-06 19:48:37.901428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:48:37.949525"], ["updated_at", "2015-11-06 19:48:37.949525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:48:37.952608"], ["updated_at", "2015-11-06 19:48:37.952608"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:48:37.967256"], ["updated_at", "2015-11-06 19:48:37.967256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:48:37 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 9.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:51:12 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:52:25 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:53:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:53:23 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:53:41 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:54:09 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:54:18 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:55:12 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:55:18 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:56:29 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:56:29.685658"], ["updated_at", "2015-11-06 19:56:29.685658"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:58:25 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:58:25.063980"], ["updated_at", "2015-11-06 19:58:25.063980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 14:59:16 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 19:59:34.906536"], ["updated_at", "2015-11-06 19:59:34.906536"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:00:17 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 20:00:17.072719"], ["updated_at", "2015-11-06 20:00:17.072719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/api/variants/a383250a-67e8-495f-aa41-5087167368b4" for 127.0.0.1 at 2015-11-06 15:00:17 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"a383250a-67e8-495f-aa41-5087167368b4"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:02:55 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:03:21 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:03:25 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:03:40 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:03:49 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:17:15 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:23:15 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:25:35 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:26:32 -0500  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:26:45 -0500  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:27:49 -0500  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:28:21 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:29:47 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/api/variants" for 127.0.0.1 at 2015-11-06 15:38:28 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 15:43:28 -0500  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 15:45:00 -0500 Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 15:45:30 -0500  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 15:45:36 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 15:46:54 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Internal Server Error: undefined method `order' for nil:NilClass /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:444:in `apply_sort' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:485:in `sort_records' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:500:in `find' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:45:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_find_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:10:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:14:in `index' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:32:in `get' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/variants_spec.rb:9:in `block (4 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:206:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:206:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:430:in `block in with_around_and_singleton_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:388:in `block in with_around_example_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:478:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:618:in `block in run_around_example_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:273:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:273:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-rails-3.3.3/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:378:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:378:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:389:in `execute_with' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:620:in `block (2 levels) in run_around_example_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:273:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:273:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:621:in `run_around_example_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:478:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:388:in `with_around_example_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:430:in `with_around_and_singleton_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example.rb:203:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:559:in `block in run_examples' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:555:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:555:in `run_examples' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:521:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' /Users/adam/.rbenv/versions/2.2.2/bin/rspec:23:in `load' /Users/adam/.rbenv/versions/2.2.2/bin/rspec:23:in `
' Completed 500 Internal Server Error in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 15:56:13 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (8.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 16ms (Views: 0.3ms | ActiveRecord: 12.9ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 15:57:34 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 15:58:41 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 5.1ms) Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 15:58:53 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:00:23 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:06:23 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 6.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:06:23 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:06:37 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 6.2ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:06:37 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:06:43 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.6ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 6.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:06:43 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:08:30 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 7.2ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:08:30 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:15:23 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:18:06 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.3ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 5.8ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (29.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:18:06.610017"], ["updated_at", "2015-11-06 21:18:06.610017"]]  (0.6ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:18:23 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (9.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Internal Server Error: JSONAPI: Could not find resource 'strain/jsonapi/strain/variant'. (Class Strain::Jsonapi::Strain::VariantResource not found) /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:281:in `resource_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:506:in `block in find' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:505:in `find' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:45:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_find_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:10:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:14:in `index' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:32:in `get' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/variants_spec.rb:9:in `block (4 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' /Users/adam/.rbenv/versions/2.2.2/bin/rspec:23:in `load' /Users/adam/.rbenv/versions/2.2.2/bin/rspec:23:in `
' Completed 500 Internal Server Error in 21ms (Views: 0.3ms | ActiveRecord: 13.6ms)  (0.2ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:18:32 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.7ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 9.8ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:18:32.325325"], ["updated_at", "2015-11-06 21:18:32.325325"]]  (3.4ms) COMMIT  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:18:37 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 6.4ms)  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:18:37.491588"], ["updated_at", "2015-11-06 21:18:37.491588"]]  (0.6ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:20:48 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.6ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:20:48.232732"], ["updated_at", "2015-11-06 21:20:48.232732"]]  (0.8ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:21:09 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 8.3ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:21:09.319388"], ["updated_at", "2015-11-06 21:21:09.319388"]]  (1.8ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:21:25 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 8.4ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:21:25.524792"], ["updated_at", "2015-11-06 21:21:25.524792"]]  (3.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:21:31 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.9ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 8.6ms)  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:21:31.402055"], ["updated_at", "2015-11-06 21:21:31.402055"]]  (3.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:21:50 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.9ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 8.0ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:21:50.830391"], ["updated_at", "2015-11-06 21:21:50.830391"]]  (3.5ms) COMMIT  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:22:55 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.7ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 13ms (Views: 0.4ms | ActiveRecord: 9.5ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:22:55.338154"], ["updated_at", "2015-11-06 21:22:55.338154"]]  (3.6ms) COMMIT  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK SQL (3.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:24:01 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 8.1ms)  (0.2ms) BEGIN Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:24:01.615524"], ["updated_at", "2015-11-06 21:24:01.615524"]]  (0.6ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:24:15 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.7ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 7.5ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:24:15.488702"], ["updated_at", "2015-11-06 21:24:15.488702"]]  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:26:41 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.3ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 6.2ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:26:41.858127"], ["updated_at", "2015-11-06 21:26:41.858127"]]  (3.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:27:17 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 5.3ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:27:17.926010"], ["updated_at", "2015-11-06 21:27:17.926010"]]  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:27:31 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.8ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 6.7ms)  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:27:31.059336"], ["updated_at", "2015-11-06 21:27:31.059336"]]  (3.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:29:17 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 4.9ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:29:17.216989"], ["updated_at", "2015-11-06 21:29:17.216989"]]  (3.5ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:29:59 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 7.8ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:29:59.824999"], ["updated_at", "2015-11-06 21:29:59.824999"]]  (3.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (3.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:31:30 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 7.4ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:31:30.950102"], ["updated_at", "2015-11-06 21:31:30.950102"]]  (3.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:33:19 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.8ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 9.2ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:33:19.509959"], ["updated_at", "2015-11-06 21:33:19.509959"]]  (3.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:33:41 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.0ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:33:41.382219"], ["updated_at", "2015-11-06 21:33:41.382219"]]  (4.7ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants"  (0.3ms) ROLLBACK SQL (3.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:35:24 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 5.0ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:35:24.046798"], ["updated_at", "2015-11-06 21:35:24.046798"]]  (3.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK SQL (3.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:35:56 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.0ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:35:56.250187"], ["updated_at", "2015-11-06 21:35:56.250187"]]  (3.5ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:36:50 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.0ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:36:50.864134"], ["updated_at", "2015-11-06 21:36:50.864134"]]  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (1.0ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:40:03 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.0ms)  (0.4ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:40:03.905546"], ["updated_at", "2015-11-06 21:40:03.905546"]]  (3.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:40:27 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.5ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:40:27.269173"], ["updated_at", "2015-11-06 21:40:27.269173"]]  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (1.0ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:41:09 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 5.9ms)  (0.3ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:41:09.848567"], ["updated_at", "2015-11-06 21:41:09.848567"]]  (1.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:41:18 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.4ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:41:18.890270"], ["updated_at", "2015-11-06 21:41:18.890270"]]  (3.4ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (1.1ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:42:11 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.3ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 7.2ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:42:11.535839"], ["updated_at", "2015-11-06 21:42:11.535839"]]  (3.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (1.0ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:42:40 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 7.2ms)  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:42:40.591722"], ["updated_at", "2015-11-06 21:42:40.591722"]]  (3.6ms) COMMIT  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:43:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.1ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:43:00.363947"], ["updated_at", "2015-11-06 21:43:00.363947"]]  (3.6ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants"  (0.3ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:49:11 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 4.9ms)  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:49:11.746839"], ["updated_at", "2015-11-06 21:49:11.746839"]]  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:55:36 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 5.6ms)  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:55:36.415421"], ["updated_at", "2015-11-06 21:55:36.415421"]]  (3.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:55:44 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Internal Server Error: JSONAPI: Could not find resource 'strain/jsonapi/strain/variant'. (Class Strain::Jsonapi::Strain::VariantResource not found) /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:281:in `resource_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:506:in `block in find' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:505:in `find' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:45:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_find_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:10:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:14:in `index' /Users/adam/dev/strain/app/controllers/strain/jsonapi/variants_controller.rb:8:in `index' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:32:in `get' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/variants_spec.rb:10:in `block (4 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' /Users/adam/.rbenv/versions/2.2.2/bin/rspec:23:in `load' /Users/adam/.rbenv/versions/2.2.2/bin/rspec:23:in `
' Completed 500 Internal Server Error in 13ms (Views: 0.3ms | ActiveRecord: 5.8ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:56:08 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Internal Server Error: JSONAPI: Could not find resource 'strain/jsonapi/strain/variant'. (Class Strain::Jsonapi::Strain::VariantResource not found) /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:281:in `resource_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:506:in `block in find' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:505:in `find' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:45:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_find_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:10:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:14:in `index' /Users/adam/dev/strain/app/controllers/strain/jsonapi/variants_controller.rb:8:in `index' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:32:in `get' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/variants_spec.rb:10:in `block (4 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' /Users/adam/.rbenv/versions/2.2.2/bin/rspec:23:in `load' /Users/adam/.rbenv/versions/2.2.2/bin/rspec:23:in `
' Completed 500 Internal Server Error in 17ms (Views: 0.5ms | ActiveRecord: 4.9ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK SQL (1.2ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:56:14 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.6ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 7.9ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:56:14.305209"], ["updated_at", "2015-11-06 21:56:14.305209"]]  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:56:28 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 9.4ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:56:28.698501"], ["updated_at", "2015-11-06 21:56:28.698501"]]  (3.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (1.1ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:56:41 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.5ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:56:41.830881"], ["updated_at", "2015-11-06 21:56:41.830881"]]  (3.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 16:56:50 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 5.0ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 21:56:50.651880"], ["updated_at", "2015-11-06 21:56:50.651880"]]  (3.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 17:07:06 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 6.2ms)  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 22:07:06.896818"], ["updated_at", "2015-11-06 22:07:06.896818"]]  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 17:08:32 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.0ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 22:08:32.604212"], ["updated_at", "2015-11-06 22:08:32.604212"]]  (6.9ms) COMMIT  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 17:09:23 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.9ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 31342ms (Views: 0.3ms | ActiveRecord: 8.7ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 22:09:55.128853"], ["updated_at", "2015-11-06 22:09:55.128853"]]  (3.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 17:11:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 29979ms (Views: 0.6ms | ActiveRecord: 6.7ms)  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 22:11:30.733941"], ["updated_at", "2015-11-06 22:11:30.733941"]]  (3.3ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 17:12:55 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 8.0ms)  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 22:12:55.271624"], ["updated_at", "2015-11-06 22:12:55.271624"]]  (3.0ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 17:22:39 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 17:27:55 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.9ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 8.2ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (20.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 22:27:55.103957"], ["updated_at", "2015-11-06 22:27:55.103957"]]  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 17:28:33 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 903275ms (Views: 0.6ms | ActiveRecord: 6.4ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 22:43:37.296819"], ["updated_at", "2015-11-06 22:43:37.296819"]]  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/zerp/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:03:19 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.3ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.6ms)  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (29.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:03:19.986466"], ["updated_at", "2015-11-06 23:03:19.986466"]]  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/zerp/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:03:37 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.6ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 7.5ms)  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:03:37.939686"], ["updated_at", "2015-11-06 23:03:37.939686"]]  (0.6ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (1.2ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:03:55.419232"], ["updated_at", "2015-11-06 23:03:55.419232"]]  (3.0ms) COMMIT Started GET "/zerp/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:03:55 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (23.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:41:33.638766"], ["updated_at", "2015-11-06 23:41:33.638766"]]  (1.2ms) COMMIT Started GET "/zerp/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:41:33 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:42:26.729448"], ["updated_at", "2015-11-06 23:42:26.729448"]]  (3.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:42:26 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:47:43.404952"], ["updated_at", "2015-11-06 23:47:43.404952"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:47:43 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants"  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.4ms) ROLLBACK SQL (3.3ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:48:16.224021"], ["updated_at", "2015-11-06 23:48:16.224021"]]  (3.2ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:48:16 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK SQL (3.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:48:29.136502"], ["updated_at", "2015-11-06 23:48:29.136502"]]  (3.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:48:29 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.3ms) ROLLBACK SQL (3.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:48:36.519261"], ["updated_at", "2015-11-06 23:48:36.519261"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:48:36 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:50:00.202616"], ["updated_at", "2015-11-06 23:50:00.202616"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:50:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (22.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:52:44.508668"], ["updated_at", "2015-11-06 23:52:44.508668"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:52:44 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:52:44.574022"], ["updated_at", "2015-11-06 23:52:44.574022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:52:58.567468"], ["updated_at", "2015-11-06 23:52:58.567468"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:52:58 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:52:58.617307"], ["updated_at", "2015-11-06 23:52:58.617307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/jsonapi/variants/94e841c1-44af-4c77-a1e5-45523d749003" for 127.0.0.1 at 2015-11-06 18:52:58 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"94e841c1-44af-4c77-a1e5-45523d749003"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "94e841c1-44af-4c77-a1e5-45523d749003"]] Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:55:36.479180"], ["updated_at", "2015-11-06 23:55:36.479180"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:55:36 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:55:36.518094"], ["updated_at", "2015-11-06 23:55:36.518094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/jsonapi/variants/cd7e9bbb-9273-41d0-86c0-efa2756448f4" for 127.0.0.1 at 2015-11-06 18:55:36 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"cd7e9bbb-9273-41d0-86c0-efa2756448f4"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "cd7e9bbb-9273-41d0-86c0-efa2756448f4"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:58:31.481955"], ["updated_at", "2015-11-06 23:58:31.481955"]]  (3.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:58:31 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:58:31.529064"], ["updated_at", "2015-11-06 23:58:31.529064"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/b7b6de29-1b65-47c1-b5af-aef5a7bbb87a" for 127.0.0.1 at 2015-11-06 18:58:31 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"b7b6de29-1b65-47c1-b5af-aef5a7bbb87a"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b7b6de29-1b65-47c1-b5af-aef5a7bbb87a"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:59:05.119842"], ["updated_at", "2015-11-06 23:59:05.119842"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:59:05 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:59:05.168154"], ["updated_at", "2015-11-06 23:59:05.168154"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/23cc87e8-8cf3-428e-be20-10db9da284b2" for 127.0.0.1 at 2015-11-06 18:59:05 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"23cc87e8-8cf3-428e-be20-10db9da284b2"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "23cc87e8-8cf3-428e-be20-10db9da284b2"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:59:24.003862"], ["updated_at", "2015-11-06 23:59:24.003862"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:59:24 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:59:24.052518"], ["updated_at", "2015-11-06 23:59:24.052518"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/9a8d41d5-e5b8-476f-a62c-e3ebd76a2fc3" for 127.0.0.1 at 2015-11-06 18:59:24 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"9a8d41d5-e5b8-476f-a62c-e3ebd76a2fc3"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "9a8d41d5-e5b8-476f-a62c-e3ebd76a2fc3"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:59:40.430862"], ["updated_at", "2015-11-06 23:59:40.430862"]]  (4.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 18:59:40 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-06 23:59:40.480064"], ["updated_at", "2015-11-06 23:59:40.480064"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/38f63802-3796-4836-a209-6eb0e4dd1115" for 127.0.0.1 at 2015-11-06 18:59:40 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"38f63802-3796-4836-a209-6eb0e4dd1115"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "38f63802-3796-4836-a209-6eb0e4dd1115"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:02:39.467315"], ["updated_at", "2015-11-07 00:02:39.467315"]]  (3.1ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 19:02:39 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:02:39.513530"], ["updated_at", "2015-11-07 00:02:39.513530"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/8bb52ee1-2a49-4100-8942-dc1b6cdac278" for 127.0.0.1 at 2015-11-06 19:02:39 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"8bb52ee1-2a49-4100-8942-dc1b6cdac278"} Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "8bb52ee1-2a49-4100-8942-dc1b6cdac278"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:02:45.788617"], ["updated_at", "2015-11-07 00:02:45.788617"]]  (3.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 19:02:45 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:02:45.829437"], ["updated_at", "2015-11-07 00:02:45.829437"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/5e866ea3-1213-414a-838d-3c9b2c08834d" for 127.0.0.1 at 2015-11-06 19:02:45 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"5e866ea3-1213-414a-838d-3c9b2c08834d"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "5e866ea3-1213-414a-838d-3c9b2c08834d"]] Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:03:20.681406"], ["updated_at", "2015-11-07 00:03:20.681406"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 19:03:20 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:03:20.726952"], ["updated_at", "2015-11-07 00:03:20.726952"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/84e07774-d434-4576-9407-c01f75311650" for 127.0.0.1 at 2015-11-06 19:03:20 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"84e07774-d434-4576-9407-c01f75311650"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "84e07774-d434-4576-9407-c01f75311650"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:03:42.539630"], ["updated_at", "2015-11-07 00:03:42.539630"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 19:03:42 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:03:42.586486"], ["updated_at", "2015-11-07 00:03:42.586486"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/7c61bc69-0fd0-46c1-b360-8c9ba2590ef1" for 127.0.0.1 at 2015-11-06 19:03:42 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"7c61bc69-0fd0-46c1-b360-8c9ba2590ef1"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "7c61bc69-0fd0-46c1-b360-8c9ba2590ef1"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:03:56.729122"], ["updated_at", "2015-11-07 00:03:56.729122"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 19:03:56 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:03:56.773798"], ["updated_at", "2015-11-07 00:03:56.773798"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/5778ce4c-5527-4218-9701-21320027715a" for 127.0.0.1 at 2015-11-06 19:03:56 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"5778ce4c-5527-4218-9701-21320027715a"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "5778ce4c-5527-4218-9701-21320027715a"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:04:10.566021"], ["updated_at", "2015-11-07 00:04:10.566021"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 19:04:10 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:04:10.616002"], ["updated_at", "2015-11-07 00:04:10.616002"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/a15ed119-842c-49b9-a66b-f4180229c703" for 127.0.0.1 at 2015-11-06 19:04:10 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"a15ed119-842c-49b9-a66b-f4180229c703"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "a15ed119-842c-49b9-a66b-f4180229c703"]] Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:04:44.546394"], ["updated_at", "2015-11-07 00:04:44.546394"]]  (3.2ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 19:04:44 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 00:04:44.588666"], ["updated_at", "2015-11-07 00:04:44.588666"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/71649c9a-7494-4fad-9942-c2246e4b9be2" for 127.0.0.1 at 2015-11-06 19:04:44 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"71649c9a-7494-4fad-9942-c2246e4b9be2"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "71649c9a-7494-4fad-9942-c2246e4b9be2"]] Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (31.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 01:27:11.234421"], ["updated_at", "2015-11-07 01:27:11.234421"]]  (1.2ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 20:27:11 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 01:27:11.308489"], ["updated_at", "2015-11-07 01:27:11.308489"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/021f05d5-f39c-4db9-9cea-06c3426807d1" for 127.0.0.1 at 2015-11-06 20:27:11 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"021f05d5-f39c-4db9-9cea-06c3426807d1"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "021f05d5-f39c-4db9-9cea-06c3426807d1"]] Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 01:27:11.333452"], ["updated_at", "2015-11-07 01:27:11.333452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (71.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:12:52.656640"], ["updated_at", "2015-11-07 02:12:52.656640"]]  (1.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:12:52 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:12:52.772877"], ["updated_at", "2015-11-07 02:12:52.772877"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/21014241-06c6-4887-8fbf-8ec617dab0cd" for 127.0.0.1 at 2015-11-06 21:12:52 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"21014241-06c6-4887-8fbf-8ec617dab0cd"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "21014241-06c6-4887-8fbf-8ec617dab0cd"]] Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:13:00.200919"], ["updated_at", "2015-11-07 02:13:00.200919"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:13:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:13:00.240305"], ["updated_at", "2015-11-07 02:13:00.240305"]]  (0.7ms) COMMIT Started GET "/jsonapi/variants/550e5bec-56bf-4f31-ac27-69f2a4796e46" for 127.0.0.1 at 2015-11-06 21:13:00 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"550e5bec-56bf-4f31-ac27-69f2a4796e46"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "550e5bec-56bf-4f31-ac27-69f2a4796e46"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants"  (0.3ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:13:08.912766"], ["updated_at", "2015-11-07 02:13:08.912766"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:13:08 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:13:08.958575"], ["updated_at", "2015-11-07 02:13:08.958575"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/befc35d4-4cf3-4949-a379-f68eee783b83" for 127.0.0.1 at 2015-11-06 21:13:08 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"befc35d4-4cf3-4949-a379-f68eee783b83"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "befc35d4-4cf3-4949-a379-f68eee783b83"]] Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:13:24.278824"], ["updated_at", "2015-11-07 02:13:24.278824"]]  (3.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:13:24 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:13:24.321809"], ["updated_at", "2015-11-07 02:13:24.321809"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/2c08695b-3c2b-4f1b-94eb-ae0f88d74c69" for 127.0.0.1 at 2015-11-06 21:13:24 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"2c08695b-3c2b-4f1b-94eb-ae0f88d74c69"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "2c08695b-3c2b-4f1b-94eb-ae0f88d74c69"]] Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:14:06.523505"], ["updated_at", "2015-11-07 02:14:06.523505"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:14:06 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:14:06.571301"], ["updated_at", "2015-11-07 02:14:06.571301"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/a737d2cc-d94f-4987-a7cc-7df9d6db42f3" for 127.0.0.1 at 2015-11-06 21:14:06 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"a737d2cc-d94f-4987-a7cc-7df9d6db42f3"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "a737d2cc-d94f-4987-a7cc-7df9d6db42f3"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:14:12.404812"], ["updated_at", "2015-11-07 02:14:12.404812"]]  (3.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:14:12 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:14:12.450672"], ["updated_at", "2015-11-07 02:14:12.450672"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/166be7e1-91f2-4c43-abfa-43e5ff4e0a6f" for 127.0.0.1 at 2015-11-06 21:14:12 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"166be7e1-91f2-4c43-abfa-43e5ff4e0a6f"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "166be7e1-91f2-4c43-abfa-43e5ff4e0a6f"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (2.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:14:19.580946"], ["updated_at", "2015-11-07 02:14:19.580946"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:14:19 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:14:19.630568"], ["updated_at", "2015-11-07 02:14:19.630568"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/8bf4d1f3-93bd-445e-a4e8-9df9b243c3f7" for 127.0.0.1 at 2015-11-06 21:14:19 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"8bf4d1f3-93bd-445e-a4e8-9df9b243c3f7"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "8bf4d1f3-93bd-445e-a4e8-9df9b243c3f7"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:14:26.532230"], ["updated_at", "2015-11-07 02:14:26.532230"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:14:26 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:14:26.579196"], ["updated_at", "2015-11-07 02:14:26.579196"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/3805fe13-e804-40cf-93aa-0700104047a5" for 127.0.0.1 at 2015-11-06 21:14:26 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"3805fe13-e804-40cf-93aa-0700104047a5"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "3805fe13-e804-40cf-93aa-0700104047a5"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (28.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:30:48.413964"], ["updated_at", "2015-11-07 02:30:48.413964"]]  (1.2ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:30:48 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:30:48.485289"], ["updated_at", "2015-11-07 02:30:48.485289"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/64a6bab9-6903-4aa5-af95-918a0c5f8076" for 127.0.0.1 at 2015-11-06 21:30:48 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"64a6bab9-6903-4aa5-af95-918a0c5f8076"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "64a6bab9-6903-4aa5-af95-918a0c5f8076"]] Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:30:48 -0500 Processing by Strain::Jsonapi::VariantsController#create as HTML Filter chain halted as :ensure_correct_media_type rendered or redirected Completed 415 Unsupported Media Type in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:41:39.431368"], ["updated_at", "2015-11-07 02:41:39.431368"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:41:39 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:41:39.480277"], ["updated_at", "2015-11-07 02:41:39.480277"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/1308aae2-1c9a-43cb-afb2-898a5b4adfa4" for 127.0.0.1 at 2015-11-06 21:41:39 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"1308aae2-1c9a-43cb-afb2-898a5b4adfa4"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "1308aae2-1c9a-43cb-afb2-898a5b4adfa4"]] Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:41:39 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:41:39.510295"], ["updated_at", "2015-11-07 02:41:39.510295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:42:15.020400"], ["updated_at", "2015-11-07 02:42:15.020400"]]  (3.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:42:15 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:42:15.066280"], ["updated_at", "2015-11-07 02:42:15.066280"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/ec523b85-9a3d-4ed9-849f-7d71b3c42a3f" for 127.0.0.1 at 2015-11-06 21:42:15 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"ec523b85-9a3d-4ed9-849f-7d71b3c42a3f"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "ec523b85-9a3d-4ed9-849f-7d71b3c42a3f"]] Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:42:15 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:42:15.105967"], ["updated_at", "2015-11-07 02:42:15.105967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 12ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:42:38.342372"], ["updated_at", "2015-11-07 02:42:38.342372"]]  (3.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:42:38 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:42:38.381714"], ["updated_at", "2015-11-07 02:42:38.381714"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/803713f5-42d8-44b7-afd5-1cabcd2eab57" for 127.0.0.1 at 2015-11-06 21:42:38 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"803713f5-42d8-44b7-afd5-1cabcd2eab57"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "803713f5-42d8-44b7-afd5-1cabcd2eab57"]] Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:42:38 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:42:38.412156"], ["updated_at", "2015-11-07 02:42:38.412156"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.3ms | ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:43:17.038458"], ["updated_at", "2015-11-07 02:43:17.038458"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:43:17 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:43:17.088541"], ["updated_at", "2015-11-07 02:43:17.088541"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/71600147-1f11-41fb-9911-f8f8d73c1da6" for 127.0.0.1 at 2015-11-06 21:43:17 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"71600147-1f11-41fb-9911-f8f8d73c1da6"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "71600147-1f11-41fb-9911-f8f8d73c1da6"]] Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:43:17 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:43:17.121785"], ["updated_at", "2015-11-07 02:43:17.121785"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:43:33.027616"], ["updated_at", "2015-11-07 02:43:33.027616"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:43:33 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:43:33.074238"], ["updated_at", "2015-11-07 02:43:33.074238"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/7aed5b56-e06f-45ff-a09c-197fa565f17d" for 127.0.0.1 at 2015-11-06 21:43:33 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"7aed5b56-e06f-45ff-a09c-197fa565f17d"} Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "7aed5b56-e06f-45ff-a09c-197fa565f17d"]] Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 0.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:43:33 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:43:33.112623"], ["updated_at", "2015-11-07 02:43:33.112623"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 12ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:45:00.503573"], ["updated_at", "2015-11-07 02:45:00.503573"]]  (3.7ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:45:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:45:00.557592"], ["updated_at", "2015-11-07 02:45:00.557592"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/f2f7a160-683c-4e97-b6f8-61291e2095ff" for 127.0.0.1 at 2015-11-06 21:45:00 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"f2f7a160-683c-4e97-b6f8-61291e2095ff"} Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "f2f7a160-683c-4e97-b6f8-61291e2095ff"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 0.6ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:45:00 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:45:00.587076"], ["updated_at", "2015-11-07 02:45:00.587076"]]  (0.4ms) COMMIT Completed 201 Created in 9ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:47:44.108493"], ["updated_at", "2015-11-07 02:47:44.108493"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:47:44 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:47:44.155879"], ["updated_at", "2015-11-07 02:47:44.155879"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/2f69d91e-72a4-4d66-9df5-b4d43d83ad91" for 127.0.0.1 at 2015-11-06 21:47:44 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"2f69d91e-72a4-4d66-9df5-b4d43d83ad91"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "2f69d91e-72a4-4d66-9df5-b4d43d83ad91"]] Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:47:44 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:47:44.186662"], ["updated_at", "2015-11-07 02:47:44.186662"]]  (0.6ms) COMMIT Completed 201 Created in 11ms (Views: 0.5ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:47:52.293089"], ["updated_at", "2015-11-07 02:47:52.293089"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:47:52 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:47:52.334695"], ["updated_at", "2015-11-07 02:47:52.334695"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/c54980f2-4fa0-4a13-9318-87d339ad406f" for 127.0.0.1 at 2015-11-06 21:47:52 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"c54980f2-4fa0-4a13-9318-87d339ad406f"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c54980f2-4fa0-4a13-9318-87d339ad406f"]] Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:47:52 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:47:52.364961"], ["updated_at", "2015-11-07 02:47:52.364961"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:48:00.996880"], ["updated_at", "2015-11-07 02:48:00.996880"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:48:01 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:48:01.042601"], ["updated_at", "2015-11-07 02:48:01.042601"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/0ae87e37-d3f5-4fe1-8c58-39dd5fad9f8b" for 127.0.0.1 at 2015-11-06 21:48:01 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"0ae87e37-d3f5-4fe1-8c58-39dd5fad9f8b"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "0ae87e37-d3f5-4fe1-8c58-39dd5fad9f8b"]] Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:48:01 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:48:01.076060"], ["updated_at", "2015-11-07 02:48:01.076060"]]  (0.3ms) COMMIT Completed 201 Created in 12ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:48:09.707710"], ["updated_at", "2015-11-07 02:48:09.707710"]]  (3.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:48:09 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:48:09.755156"], ["updated_at", "2015-11-07 02:48:09.755156"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/6c40c3ae-a006-46fc-861f-7d36ab607ebd" for 127.0.0.1 at 2015-11-06 21:48:09 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"6c40c3ae-a006-46fc-861f-7d36ab607ebd"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "6c40c3ae-a006-46fc-861f-7d36ab607ebd"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:48:09 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:48:09.786844"], ["updated_at", "2015-11-07 02:48:09.786844"]]  (0.3ms) COMMIT Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:54:50.366010"], ["updated_at", "2015-11-07 02:54:50.366010"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:54:50 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:54:50.409955"], ["updated_at", "2015-11-07 02:54:50.409955"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/f828b928-e90e-4faa-8c27-e9e36e0c32fb" for 127.0.0.1 at 2015-11-06 21:54:50 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"f828b928-e90e-4faa-8c27-e9e36e0c32fb"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "f828b928-e90e-4faa-8c27-e9e36e0c32fb"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:54:50 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:54:50.435228"], ["updated_at", "2015-11-07 02:54:50.435228"]]  (0.3ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:54:50.448825"], ["updated_at", "2015-11-07 02:54:50.448825"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants.35276172-06b5-423e-9004-697a0396fad2" for 127.0.0.1 at 2015-11-06 21:54:50 -0500 ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:55:29.164709"], ["updated_at", "2015-11-07 02:55:29.164709"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/14e9264b-28fe-4660-bbd5-c050d97969b9" for 127.0.0.1 at 2015-11-06 21:55:29 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"14e9264b-28fe-4660-bbd5-c050d97969b9"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "14e9264b-28fe-4660-bbd5-c050d97969b9"]] Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:55:29 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:55:29.215935"], ["updated_at", "2015-11-07 02:55:29.215935"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:55:29.229430"], ["updated_at", "2015-11-07 02:55:29.229430"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants.b933464e-b870-4d4a-8e80-913dc89e0735" for 127.0.0.1 at 2015-11-06 21:55:29 -0500 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK SQL (4.0ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:00.111739"], ["updated_at", "2015-11-07 02:56:00.111739"]]  (0.7ms) COMMIT Started GET "/jsonapi/variants/ae9e5737-f7fb-4527-ad54-ab555a2576b8" for 127.0.0.1 at 2015-11-06 21:56:00 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"ae9e5737-f7fb-4527-ad54-ab555a2576b8"} Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "ae9e5737-f7fb-4527-ad54-ab555a2576b8"]] Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.5ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:56:00 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:56:00.161438"], ["updated_at", "2015-11-07 02:56:00.161438"]]  (0.5ms) COMMIT Completed 201 Created in 9ms (Views: 0.3ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:00.174318"], ["updated_at", "2015-11-07 02:56:00.174318"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants.3c513214-0203-4db1-9dba-0d9ad87fa774" for 127.0.0.1 at 2015-11-06 21:56:00 -0500 SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:05.144726"], ["updated_at", "2015-11-07 02:56:05.144726"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:56:05 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:05.189719"], ["updated_at", "2015-11-07 02:56:05.189719"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/5a6eb8fd-734e-4c50-a4e2-caec9545fd80" for 127.0.0.1 at 2015-11-06 21:56:05 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"5a6eb8fd-734e-4c50-a4e2-caec9545fd80"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "5a6eb8fd-734e-4c50-a4e2-caec9545fd80"]] Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:56:05 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:56:05.219862"], ["updated_at", "2015-11-07 02:56:05.219862"]]  (0.5ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:05.234869"], ["updated_at", "2015-11-07 02:56:05.234869"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants.5d84d341-f563-424b-958b-b5c149876c47" for 127.0.0.1 at 2015-11-06 21:56:05 -0500 SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:17.738881"], ["updated_at", "2015-11-07 02:56:17.738881"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:56:17 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants"  (0.3ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:17.781993"], ["updated_at", "2015-11-07 02:56:17.781993"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/7b106871-020f-4a6c-afba-b57d8f63c370" for 127.0.0.1 at 2015-11-06 21:56:17 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"7b106871-020f-4a6c-afba-b57d8f63c370"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "7b106871-020f-4a6c-afba-b57d8f63c370"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:56:17 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:56:17.808413"], ["updated_at", "2015-11-07 02:56:17.808413"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:17.823146"], ["updated_at", "2015-11-07 02:56:17.823146"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/661fb068-e032-44c2-b334-113cdf3429b5" for 127.0.0.1 at 2015-11-06 21:56:17 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"661fb068-e032-44c2-b334-113cdf3429b5"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "661fb068-e032-44c2-b334-113cdf3429b5"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "661fb068-e032-44c2-b334-113cdf3429b5"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms) SQL (0.3ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:36.753671"], ["updated_at", "2015-11-07 02:56:36.753671"]]  (3.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:56:36 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:36.795573"], ["updated_at", "2015-11-07 02:56:36.795573"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/34d4e7f1-aef2-4b5a-ab79-44562ddcaf5d" for 127.0.0.1 at 2015-11-06 21:56:36 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"34d4e7f1-aef2-4b5a-ab79-44562ddcaf5d"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "34d4e7f1-aef2-4b5a-ab79-44562ddcaf5d"]] Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:56:36 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:56:36.820880"], ["updated_at", "2015-11-07 02:56:36.820880"]]  (0.5ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:56:36.835302"], ["updated_at", "2015-11-07 02:56:36.835302"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/667bd0c1-0de1-4892-beb0-fd667b0f9ab2" for 127.0.0.1 at 2015-11-06 21:56:36 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"667bd0c1-0de1-4892-beb0-fd667b0f9ab2"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "667bd0c1-0de1-4892-beb0-fd667b0f9ab2"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "667bd0c1-0de1-4892-beb0-fd667b0f9ab2"]]  (0.4ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:57:49.432718"], ["updated_at", "2015-11-07 02:57:49.432718"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:57:49 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:57:49.479648"], ["updated_at", "2015-11-07 02:57:49.479648"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/57146eb7-18c3-4a02-b343-0fb82a775678" for 127.0.0.1 at 2015-11-06 21:57:49 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"57146eb7-18c3-4a02-b343-0fb82a775678"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "57146eb7-18c3-4a02-b343-0fb82a775678"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:57:49 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:57:49.509509"], ["updated_at", "2015-11-07 02:57:49.509509"]]  (0.5ms) COMMIT Completed 201 Created in 9ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:57:49.522850"], ["updated_at", "2015-11-07 02:57:49.522850"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/61cdfac5-80bc-4f3e-9f3f-c562d35849e4" for 127.0.0.1 at 2015-11-06 21:57:49 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"61cdfac5-80bc-4f3e-9f3f-c562d35849e4"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "61cdfac5-80bc-4f3e-9f3f-c562d35849e4"]] SQL (0.4ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "61cdfac5-80bc-4f3e-9f3f-c562d35849e4"]]  (0.4ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:58:40.433824"], ["updated_at", "2015-11-07 02:58:40.433824"]]  (3.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:58:40 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:58:40.474514"], ["updated_at", "2015-11-07 02:58:40.474514"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/d3cfb562-8260-4895-858d-0a86001a848b" for 127.0.0.1 at 2015-11-06 21:58:40 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"d3cfb562-8260-4895-858d-0a86001a848b"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "d3cfb562-8260-4895-858d-0a86001a848b"]] Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:58:40 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:58:40.503587"], ["updated_at", "2015-11-07 02:58:40.503587"]]  (0.5ms) COMMIT Completed 201 Created in 11ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:58:40.522592"], ["updated_at", "2015-11-07 02:58:40.522592"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/b92dce42-4efd-47a4-8f20-1de23759a5d2" for 127.0.0.1 at 2015-11-06 21:58:40 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"b92dce42-4efd-47a4-8f20-1de23759a5d2"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b92dce42-4efd-47a4-8f20-1de23759a5d2"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "b92dce42-4efd-47a4-8f20-1de23759a5d2"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:58:46.162221"], ["updated_at", "2015-11-07 02:58:46.162221"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:58:46 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:58:46.199054"], ["updated_at", "2015-11-07 02:58:46.199054"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/234065e2-f090-4461-a975-ab7ac3ca0494" for 127.0.0.1 at 2015-11-06 21:58:46 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"234065e2-f090-4461-a975-ab7ac3ca0494"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "234065e2-f090-4461-a975-ab7ac3ca0494"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:58:46 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:58:46.225815"], ["updated_at", "2015-11-07 02:58:46.225815"]]  (0.5ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:58:46.239526"], ["updated_at", "2015-11-07 02:58:46.239526"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/510c45ab-98b0-4315-842c-f0f61ff3dff2" for 127.0.0.1 at 2015-11-06 21:58:46 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"510c45ab-98b0-4315-842c-f0f61ff3dff2"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "510c45ab-98b0-4315-842c-f0f61ff3dff2"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "510c45ab-98b0-4315-842c-f0f61ff3dff2"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:58:52.924534"], ["updated_at", "2015-11-07 02:58:52.924534"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:58:52 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:58:52.967365"], ["updated_at", "2015-11-07 02:58:52.967365"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/02357797-5910-4381-96c1-16b7b007968c" for 127.0.0.1 at 2015-11-06 21:58:52 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"02357797-5910-4381-96c1-16b7b007968c"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "02357797-5910-4381-96c1-16b7b007968c"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:58:52 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:58:52.997794"], ["updated_at", "2015-11-07 02:58:52.997794"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:58:53.012608"], ["updated_at", "2015-11-07 02:58:53.012608"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/b702e22a-f385-47d6-84c5-f44ba53c0e2e" for 127.0.0.1 at 2015-11-06 21:58:53 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"b702e22a-f385-47d6-84c5-f44ba53c0e2e"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b702e22a-f385-47d6-84c5-f44ba53c0e2e"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "b702e22a-f385-47d6-84c5-f44ba53c0e2e"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.3ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:59:06.109850"], ["updated_at", "2015-11-07 02:59:06.109850"]]  (3.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:59:06 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:59:06.157399"], ["updated_at", "2015-11-07 02:59:06.157399"]]  (0.2ms) COMMIT Started GET "/jsonapi/variants/65cb964d-ba81-4101-be75-55fb8f9818ab" for 127.0.0.1 at 2015-11-06 21:59:06 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"65cb964d-ba81-4101-be75-55fb8f9818ab"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "65cb964d-ba81-4101-be75-55fb8f9818ab"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:59:06 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:59:06.182538"], ["updated_at", "2015-11-07 02:59:06.182538"]]  (0.5ms) COMMIT Completed 201 Created in 11ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:59:06.201541"], ["updated_at", "2015-11-07 02:59:06.201541"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/df7782a9-976a-494d-96b2-5f733949a243" for 127.0.0.1 at 2015-11-06 21:59:06 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"df7782a9-976a-494d-96b2-5f733949a243"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "df7782a9-976a-494d-96b2-5f733949a243"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "df7782a9-976a-494d-96b2-5f733949a243"]]  (0.4ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:59:06.215844"], ["updated_at", "2015-11-07 02:59:06.215844"]]  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:59:12.758405"], ["updated_at", "2015-11-07 02:59:12.758405"]]  (3.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:59:12 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:59:12.804141"], ["updated_at", "2015-11-07 02:59:12.804141"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/c2e0c43d-6123-4fb9-838e-5e36f792ab94" for 127.0.0.1 at 2015-11-06 21:59:12 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"c2e0c43d-6123-4fb9-838e-5e36f792ab94"} Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c2e0c43d-6123-4fb9-838e-5e36f792ab94"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 21:59:12 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 02:59:12.834704"], ["updated_at", "2015-11-07 02:59:12.834704"]]  (0.5ms) COMMIT Completed 201 Created in 11ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 02:59:12.851976"], ["updated_at", "2015-11-07 02:59:12.851976"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/67a8c7db-7a01-4a0b-8b70-83b10657c975" for 127.0.0.1 at 2015-11-06 21:59:12 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"67a8c7db-7a01-4a0b-8b70-83b10657c975"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "67a8c7db-7a01-4a0b-8b70-83b10657c975"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "67a8c7db-7a01-4a0b-8b70-83b10657c975"]]  (0.4ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (19.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:18:57.425380"], ["updated_at", "2015-11-07 03:18:57.425380"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:18:57 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:18:57.484187"], ["updated_at", "2015-11-07 03:18:57.484187"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/9d0171b6-09bc-4eaa-a531-6ce48f204cf2" for 127.0.0.1 at 2015-11-06 22:18:57 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"9d0171b6-09bc-4eaa-a531-6ce48f204cf2"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "9d0171b6-09bc-4eaa-a531-6ce48f204cf2"]] Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:18:57 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:18:57.512610"], ["updated_at", "2015-11-07 03:18:57.512610"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:18:57.526951"], ["updated_at", "2015-11-07 03:18:57.526951"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/f34bb963-8210-4c51-9ff4-2a75281d503f" for 127.0.0.1 at 2015-11-06 22:18:57 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"f34bb963-8210-4c51-9ff4-2a75281d503f"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "f34bb963-8210-4c51-9ff4-2a75281d503f"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "f34bb963-8210-4c51-9ff4-2a75281d503f"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:20:49.609390"], ["updated_at", "2015-11-07 03:20:49.609390"]]  (0.8ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:20:49 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (1.1ms) DELETE FROM "strain_variants"  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:20:49.661661"], ["updated_at", "2015-11-07 03:20:49.661661"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/dff03249-e365-49ca-a9d5-42cc9717d85a" for 127.0.0.1 at 2015-11-06 22:20:49 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"dff03249-e365-49ca-a9d5-42cc9717d85a"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "dff03249-e365-49ca-a9d5-42cc9717d85a"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:20:49 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:20:49.692618"], ["updated_at", "2015-11-07 03:20:49.692618"]]  (0.5ms) COMMIT Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:20:49.706079"], ["updated_at", "2015-11-07 03:20:49.706079"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/96e9e565-91e5-4c31-bcfe-2ae38abaf747" for 127.0.0.1 at 2015-11-06 22:20:49 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"96e9e565-91e5-4c31-bcfe-2ae38abaf747"}  (0.2ms) BEGIN Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "96e9e565-91e5-4c31-bcfe-2ae38abaf747"]] SQL (0.4ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "96e9e565-91e5-4c31-bcfe-2ae38abaf747"]]  (0.3ms) COMMIT Completed 204 No Content in 5ms (Views: 0.1ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:20:49.730771"], ["updated_at", "2015-11-07 03:20:49.730771"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/06d9eefc-48f4-48f3-8213-499e9abb6d20" for 127.0.0.1 at 2015-11-06 22:20:49 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"06d9eefc-48f4-48f3-8213-499e9abb6d20"} Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:21:13.526907"], ["updated_at", "2015-11-07 03:21:13.526907"]]  (3.1ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:21:13 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:21:13.574785"], ["updated_at", "2015-11-07 03:21:13.574785"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/a891c776-5ae3-4ea6-91d3-d58c574c4f92" for 127.0.0.1 at 2015-11-06 22:21:13 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"a891c776-5ae3-4ea6-91d3-d58c574c4f92"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "a891c776-5ae3-4ea6-91d3-d58c574c4f92"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:21:13 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:21:13.600234"], ["updated_at", "2015-11-07 03:21:13.600234"]]  (0.5ms) COMMIT Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:21:13.613953"], ["updated_at", "2015-11-07 03:21:13.613953"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/487462aa-b11b-446d-bb22-e27636f44b92" for 127.0.0.1 at 2015-11-06 22:21:13 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"487462aa-b11b-446d-bb22-e27636f44b92"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "487462aa-b11b-446d-bb22-e27636f44b92"]] SQL (0.4ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "487462aa-b11b-446d-bb22-e27636f44b92"]]  (0.4ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:21:13.638485"], ["updated_at", "2015-11-07 03:21:13.638485"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/186a28b8-b220-4ca0-8f87-4f2d9eddc859" for 127.0.0.1 at 2015-11-06 22:21:13 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"186a28b8-b220-4ca0-8f87-4f2d9eddc859"} Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:21:51.571615"], ["updated_at", "2015-11-07 03:21:51.571615"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:21:51 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:21:51.618652"], ["updated_at", "2015-11-07 03:21:51.618652"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/36f4ce10-9c04-4043-9c85-237889177f61" for 127.0.0.1 at 2015-11-06 22:21:51 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"36f4ce10-9c04-4043-9c85-237889177f61"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "36f4ce10-9c04-4043-9c85-237889177f61"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:21:51 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:21:51.646733"], ["updated_at", "2015-11-07 03:21:51.646733"]]  (0.6ms) COMMIT Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:21:51.661214"], ["updated_at", "2015-11-07 03:21:51.661214"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/41e1aef6-a361-40fb-b8eb-6d864d54b177" for 127.0.0.1 at 2015-11-06 22:21:51 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"41e1aef6-a361-40fb-b8eb-6d864d54b177"}  (0.1ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "41e1aef6-a361-40fb-b8eb-6d864d54b177"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "41e1aef6-a361-40fb-b8eb-6d864d54b177"]]  (0.5ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:21:51.682503"], ["updated_at", "2015-11-07 03:21:51.682503"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/19bcf7e4-cacb-4fea-82b3-0f736ca2ac06" for 127.0.0.1 at 2015-11-06 22:21:51 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"19bcf7e4-cacb-4fea-82b3-0f736ca2ac06"} Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:22:10.142688"], ["updated_at", "2015-11-07 03:22:10.142688"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:22:10 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:22:10.185114"], ["updated_at", "2015-11-07 03:22:10.185114"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/fdaa8aad-de2c-4ca3-ac14-6ac4b70e6440" for 127.0.0.1 at 2015-11-06 22:22:10 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"fdaa8aad-de2c-4ca3-ac14-6ac4b70e6440"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "fdaa8aad-de2c-4ca3-ac14-6ac4b70e6440"]] Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:22:10 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:22:10.214800"], ["updated_at", "2015-11-07 03:22:10.214800"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:22:10.228043"], ["updated_at", "2015-11-07 03:22:10.228043"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/de40e9f2-d569-469b-bd68-5b62b8dab45d" for 127.0.0.1 at 2015-11-06 22:22:10 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"de40e9f2-d569-469b-bd68-5b62b8dab45d"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "de40e9f2-d569-469b-bd68-5b62b8dab45d"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "de40e9f2-d569-469b-bd68-5b62b8dab45d"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:22:10.245355"], ["updated_at", "2015-11-07 03:22:10.245355"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/6fc221e0-854c-425e-9f05-5e77d5cce840" for 127.0.0.1 at 2015-11-06 22:22:10 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"6fc221e0-854c-425e-9f05-5e77d5cce840", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"6fc221e0-854c-425e-9f05-5e77d5cce840"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "6fc221e0-854c-425e-9f05-5e77d5cce840"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '6fc221e0-854c-425e-9f05-5e77d5cce840') LIMIT 1 SQL (4.9ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:22:10.257836"], ["id", "6fc221e0-854c-425e-9f05-5e77d5cce840"]]  (0.6ms) COMMIT Completed 200 OK in 23ms (Views: 0.5ms | ActiveRecord: 6.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:23:04.701284"], ["updated_at", "2015-11-07 03:23:04.701284"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:23:04 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:23:04.739042"], ["updated_at", "2015-11-07 03:23:04.739042"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/b9ff3833-5d03-49e9-b231-96a7a16ad6d2" for 127.0.0.1 at 2015-11-06 22:23:04 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"b9ff3833-5d03-49e9-b231-96a7a16ad6d2"} Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b9ff3833-5d03-49e9-b231-96a7a16ad6d2"]] Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:23:04 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:23:04.771927"], ["updated_at", "2015-11-07 03:23:04.771927"]]  (0.4ms) COMMIT Completed 201 Created in 11ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:23:04.786220"], ["updated_at", "2015-11-07 03:23:04.786220"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/f417a258-1bfe-488a-9a6a-5a0a20296354" for 127.0.0.1 at 2015-11-06 22:23:04 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"f417a258-1bfe-488a-9a6a-5a0a20296354"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "f417a258-1bfe-488a-9a6a-5a0a20296354"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "f417a258-1bfe-488a-9a6a-5a0a20296354"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:23:04.803762"], ["updated_at", "2015-11-07 03:23:04.803762"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/variants/fb6a89eb-97a9-4a87-8202-ff4f44d00220" for 127.0.0.1 at 2015-11-06 22:23:04 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"fb6a89eb-97a9-4a87-8202-ff4f44d00220", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"fb6a89eb-97a9-4a87-8202-ff4f44d00220"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "fb6a89eb-97a9-4a87-8202-ff4f44d00220"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'fb6a89eb-97a9-4a87-8202-ff4f44d00220') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:23:04.821162"], ["id", "fb6a89eb-97a9-4a87-8202-ff4f44d00220"]]  (0.5ms) COMMIT Completed 200 OK in 16ms (Views: 0.4ms | ActiveRecord: 2.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (1.0ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:24:42.185483"], ["updated_at", "2015-11-07 03:24:42.185483"]]  (3.7ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:24:42 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:24:42.233996"], ["updated_at", "2015-11-07 03:24:42.233996"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/03211dd1-1db2-49b5-a0e0-7db9f28fb644" for 127.0.0.1 at 2015-11-06 22:24:42 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"03211dd1-1db2-49b5-a0e0-7db9f28fb644"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "03211dd1-1db2-49b5-a0e0-7db9f28fb644"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:24:42 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:24:42.259209"], ["updated_at", "2015-11-07 03:24:42.259209"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:24:42.273544"], ["updated_at", "2015-11-07 03:24:42.273544"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/3a248f3b-6d10-4c52-80ed-75e988a8e158" for 127.0.0.1 at 2015-11-06 22:24:42 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"3a248f3b-6d10-4c52-80ed-75e988a8e158"}  (0.1ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "3a248f3b-6d10-4c52-80ed-75e988a8e158"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "3a248f3b-6d10-4c52-80ed-75e988a8e158"]]  (0.5ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:24:42.296232"], ["updated_at", "2015-11-07 03:24:42.296232"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/d87cf97d-04cd-4907-9a51-3fe2430a4f85" for 127.0.0.1 at 2015-11-06 22:24:42 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"d87cf97d-04cd-4907-9a51-3fe2430a4f85", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"d87cf97d-04cd-4907-9a51-3fe2430a4f85"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "d87cf97d-04cd-4907-9a51-3fe2430a4f85"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'd87cf97d-04cd-4907-9a51-3fe2430a4f85') LIMIT 1 SQL (0.7ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:24:42.308889"], ["id", "d87cf97d-04cd-4907-9a51-3fe2430a4f85"]]  (0.5ms) COMMIT Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 2.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:25:26.794167"], ["updated_at", "2015-11-07 03:25:26.794167"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:25:26 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:25:26.845308"], ["updated_at", "2015-11-07 03:25:26.845308"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/82b5d8ea-9497-4687-aa5d-6e678fd2d6f9" for 127.0.0.1 at 2015-11-06 22:25:26 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"82b5d8ea-9497-4687-aa5d-6e678fd2d6f9"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "82b5d8ea-9497-4687-aa5d-6e678fd2d6f9"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:25:26 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:25:26.870193"], ["updated_at", "2015-11-07 03:25:26.870193"]]  (0.3ms) COMMIT Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:25:26.884884"], ["updated_at", "2015-11-07 03:25:26.884884"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/78a2dcb3-b10c-4296-84aa-f3dfbcaddcf2" for 127.0.0.1 at 2015-11-06 22:25:26 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"78a2dcb3-b10c-4296-84aa-f3dfbcaddcf2"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "78a2dcb3-b10c-4296-84aa-f3dfbcaddcf2"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "78a2dcb3-b10c-4296-84aa-f3dfbcaddcf2"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:25:26.904128"], ["updated_at", "2015-11-07 03:25:26.904128"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/20fb248f-b729-4873-a2c9-261a741418f9" for 127.0.0.1 at 2015-11-06 22:25:26 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"20fb248f-b729-4873-a2c9-261a741418f9", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"20fb248f-b729-4873-a2c9-261a741418f9"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "20fb248f-b729-4873-a2c9-261a741418f9"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '20fb248f-b729-4873-a2c9-261a741418f9') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:25:26.920947"], ["id", "20fb248f-b729-4873-a2c9-261a741418f9"]]  (0.4ms) COMMIT Completed 200 OK in 16ms (Views: 0.3ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:25:39.555644"], ["updated_at", "2015-11-07 03:25:39.555644"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:25:39 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:25:39.593862"], ["updated_at", "2015-11-07 03:25:39.593862"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/8b0d64fb-d41d-4cdc-8f06-a5e4ca62299a" for 127.0.0.1 at 2015-11-06 22:25:39 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"8b0d64fb-d41d-4cdc-8f06-a5e4ca62299a"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "8b0d64fb-d41d-4cdc-8f06-a5e4ca62299a"]] Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:25:39 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:25:39.627042"], ["updated_at", "2015-11-07 03:25:39.627042"]]  (0.5ms) COMMIT Completed 201 Created in 13ms (Views: 0.3ms | ActiveRecord: 1.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:25:39.641672"], ["updated_at", "2015-11-07 03:25:39.641672"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/b9411b58-c4f7-4848-9ac6-662c85319d53" for 127.0.0.1 at 2015-11-06 22:25:39 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"b9411b58-c4f7-4848-9ac6-662c85319d53"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b9411b58-c4f7-4848-9ac6-662c85319d53"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "b9411b58-c4f7-4848-9ac6-662c85319d53"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:25:39.661279"], ["updated_at", "2015-11-07 03:25:39.661279"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/868ec781-ba0a-425b-9039-52989aba2123" for 127.0.0.1 at 2015-11-06 22:25:39 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"868ec781-ba0a-425b-9039-52989aba2123", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"868ec781-ba0a-425b-9039-52989aba2123"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "868ec781-ba0a-425b-9039-52989aba2123"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '868ec781-ba0a-425b-9039-52989aba2123') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:25:39.673865"], ["id", "868ec781-ba0a-425b-9039-52989aba2123"]]  (0.5ms) COMMIT Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:27:14.804595"], ["updated_at", "2015-11-07 03:27:14.804595"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:27:14 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:27:14.855750"], ["updated_at", "2015-11-07 03:27:14.855750"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/3e19334d-baa4-46e3-9185-3008217e6fef" for 127.0.0.1 at 2015-11-06 22:27:14 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"3e19334d-baa4-46e3-9185-3008217e6fef"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "3e19334d-baa4-46e3-9185-3008217e6fef"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:27:14 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:27:14.886919"], ["updated_at", "2015-11-07 03:27:14.886919"]]  (0.6ms) COMMIT Completed 201 Created in 14ms (Views: 0.5ms | ActiveRecord: 1.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:27:14.904059"], ["updated_at", "2015-11-07 03:27:14.904059"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/55416b0f-6c03-4f99-aa0c-9b08e75bf8f9" for 127.0.0.1 at 2015-11-06 22:27:14 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"55416b0f-6c03-4f99-aa0c-9b08e75bf8f9"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "55416b0f-6c03-4f99-aa0c-9b08e75bf8f9"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "55416b0f-6c03-4f99-aa0c-9b08e75bf8f9"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:27:14.921731"], ["updated_at", "2015-11-07 03:27:14.921731"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/c5327fc8-1e55-4c08-a532-3df94147c930" for 127.0.0.1 at 2015-11-06 22:27:14 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"c5327fc8-1e55-4c08-a532-3df94147c930", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"c5327fc8-1e55-4c08-a532-3df94147c930"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c5327fc8-1e55-4c08-a532-3df94147c930"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'c5327fc8-1e55-4c08-a532-3df94147c930') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:27:14.933972"], ["id", "c5327fc8-1e55-4c08-a532-3df94147c930"]]  (0.4ms) COMMIT Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "c5327fc8-1e55-4c08-a532-3df94147c930"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:28:12.454084"], ["updated_at", "2015-11-07 03:28:12.454084"]]  (3.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:28:12 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:28:12.496754"], ["updated_at", "2015-11-07 03:28:12.496754"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/7272bdbf-3536-4922-9d32-395794fbbd66" for 127.0.0.1 at 2015-11-06 22:28:12 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"7272bdbf-3536-4922-9d32-395794fbbd66"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "7272bdbf-3536-4922-9d32-395794fbbd66"]] Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:28:12 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:28:12.523397"], ["updated_at", "2015-11-07 03:28:12.523397"]]  (0.4ms) COMMIT Completed 201 Created in 11ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:28:12.544450"], ["updated_at", "2015-11-07 03:28:12.544450"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/f02286e6-d7c0-4c25-a385-061718de15af" for 127.0.0.1 at 2015-11-06 22:28:12 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"f02286e6-d7c0-4c25-a385-061718de15af"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "f02286e6-d7c0-4c25-a385-061718de15af"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "f02286e6-d7c0-4c25-a385-061718de15af"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:28:12.562157"], ["updated_at", "2015-11-07 03:28:12.562157"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/variants/9ee16c4e-e7e7-4650-b9bf-9573423606f9" for 127.0.0.1 at 2015-11-06 22:28:12 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"9ee16c4e-e7e7-4650-b9bf-9573423606f9", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"9ee16c4e-e7e7-4650-b9bf-9573423606f9"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "9ee16c4e-e7e7-4650-b9bf-9573423606f9"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '9ee16c4e-e7e7-4650-b9bf-9573423606f9') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:28:12.580015"], ["id", "9ee16c4e-e7e7-4650-b9bf-9573423606f9"]]  (0.6ms) COMMIT Completed 200 OK in 17ms (Views: 0.3ms | ActiveRecord: 2.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (1.0ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:28:28.864080"], ["updated_at", "2015-11-07 03:28:28.864080"]]  (3.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:28:28 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:28:28.907031"], ["updated_at", "2015-11-07 03:28:28.907031"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/522b6b45-4d10-47c5-a7d9-d7563ac3fc88" for 127.0.0.1 at 2015-11-06 22:28:28 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"522b6b45-4d10-47c5-a7d9-d7563ac3fc88"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "522b6b45-4d10-47c5-a7d9-d7563ac3fc88"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:28:28 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:28:28.937945"], ["updated_at", "2015-11-07 03:28:28.937945"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:28:28.951279"], ["updated_at", "2015-11-07 03:28:28.951279"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/9c64552e-aff2-4cd4-bda5-f842b9587a04" for 127.0.0.1 at 2015-11-06 22:28:28 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"9c64552e-aff2-4cd4-bda5-f842b9587a04"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "9c64552e-aff2-4cd4-bda5-f842b9587a04"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "9c64552e-aff2-4cd4-bda5-f842b9587a04"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:28:28.975732"], ["updated_at", "2015-11-07 03:28:28.975732"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/5c59bbaf-1759-4fbd-8872-ee2511b6e0bc" for 127.0.0.1 at 2015-11-06 22:28:28 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"5c59bbaf-1759-4fbd-8872-ee2511b6e0bc", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"5c59bbaf-1759-4fbd-8872-ee2511b6e0bc"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "5c59bbaf-1759-4fbd-8872-ee2511b6e0bc"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '5c59bbaf-1759-4fbd-8872-ee2511b6e0bc') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:28:28.988560"], ["id", "5c59bbaf-1759-4fbd-8872-ee2511b6e0bc"]]  (0.7ms) COMMIT Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "5c59bbaf-1759-4fbd-8872-ee2511b6e0bc"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5c59bbaf-1759-4fbd-8872-ee2511b6e0bc"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5c59bbaf-1759-4fbd-8872-ee2511b6e0bc"]]  (0.3ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:31:39.901122"], ["updated_at", "2015-11-07 03:31:39.901122"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:31:39 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:31:39.943168"], ["updated_at", "2015-11-07 03:31:39.943168"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/c2c6f759-bec2-4758-a28a-3ca401076347" for 127.0.0.1 at 2015-11-06 22:31:39 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"c2c6f759-bec2-4758-a28a-3ca401076347"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c2c6f759-bec2-4758-a28a-3ca401076347"]] Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:31:39 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:31:39.975433"], ["updated_at", "2015-11-07 03:31:39.975433"]]  (0.4ms) COMMIT Completed 201 Created in 12ms (Views: 0.3ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:31:39.988954"], ["updated_at", "2015-11-07 03:31:39.988954"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/e0a7b21c-2b49-49ce-a544-7593a69c2738" for 127.0.0.1 at 2015-11-06 22:31:39 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"e0a7b21c-2b49-49ce-a544-7593a69c2738"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "e0a7b21c-2b49-49ce-a544-7593a69c2738"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "e0a7b21c-2b49-49ce-a544-7593a69c2738"]]  (0.4ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:31:40.006807"], ["updated_at", "2015-11-07 03:31:40.006807"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/91b70dd2-e39f-4a2f-b023-49a5d3b4a70a" for 127.0.0.1 at 2015-11-06 22:31:40 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"91b70dd2-e39f-4a2f-b023-49a5d3b4a70a", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"91b70dd2-e39f-4a2f-b023-49a5d3b4a70a"}  (0.3ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "91b70dd2-e39f-4a2f-b023-49a5d3b4a70a"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '91b70dd2-e39f-4a2f-b023-49a5d3b4a70a') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:31:40.022327"], ["id", "91b70dd2-e39f-4a2f-b023-49a5d3b4a70a"]]  (0.3ms) COMMIT Completed 200 OK in 13ms (Views: 0.4ms | ActiveRecord: 1.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "91b70dd2-e39f-4a2f-b023-49a5d3b4a70a"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:31:52.037145"], ["updated_at", "2015-11-07 03:31:52.037145"]]  (4.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:31:52 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:31:52.079424"], ["updated_at", "2015-11-07 03:31:52.079424"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/0de2f99a-1ca5-4c13-9cdc-2c9ae32f1cae" for 127.0.0.1 at 2015-11-06 22:31:52 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"0de2f99a-1ca5-4c13-9cdc-2c9ae32f1cae"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "0de2f99a-1ca5-4c13-9cdc-2c9ae32f1cae"]] Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:31:52 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:31:52.111178"], ["updated_at", "2015-11-07 03:31:52.111178"]]  (0.5ms) COMMIT Completed 201 Created in 11ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:31:52.124963"], ["updated_at", "2015-11-07 03:31:52.124963"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/e089df21-890f-43bc-bc4f-fd5bacf8dd6c" for 127.0.0.1 at 2015-11-06 22:31:52 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"e089df21-890f-43bc-bc4f-fd5bacf8dd6c"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "e089df21-890f-43bc-bc4f-fd5bacf8dd6c"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "e089df21-890f-43bc-bc4f-fd5bacf8dd6c"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:31:52.147661"], ["updated_at", "2015-11-07 03:31:52.147661"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/10679c31-08c6-48b0-8ac4-28bb7481b58f" for 127.0.0.1 at 2015-11-06 22:31:52 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"10679c31-08c6-48b0-8ac4-28bb7481b58f", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"10679c31-08c6-48b0-8ac4-28bb7481b58f"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "10679c31-08c6-48b0-8ac4-28bb7481b58f"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '10679c31-08c6-48b0-8ac4-28bb7481b58f') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:31:52.161315"], ["id", "10679c31-08c6-48b0-8ac4-28bb7481b58f"]]  (0.3ms) COMMIT Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 1.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "10679c31-08c6-48b0-8ac4-28bb7481b58f"]]  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:32:02.916073"], ["updated_at", "2015-11-07 03:32:02.916073"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:32:02 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.3ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:32:02.964007"], ["updated_at", "2015-11-07 03:32:02.964007"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/d998e972-b2f0-4756-9e05-a547fa78777e" for 127.0.0.1 at 2015-11-06 22:32:02 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"d998e972-b2f0-4756-9e05-a547fa78777e"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "d998e972-b2f0-4756-9e05-a547fa78777e"]] Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:32:02 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:32:02.990297"], ["updated_at", "2015-11-07 03:32:02.990297"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:32:03.003793"], ["updated_at", "2015-11-07 03:32:03.003793"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/c3f84b6d-bf78-4249-b182-e40373b8d46e" for 127.0.0.1 at 2015-11-06 22:32:03 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"c3f84b6d-bf78-4249-b182-e40373b8d46e"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c3f84b6d-bf78-4249-b182-e40373b8d46e"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "c3f84b6d-bf78-4249-b182-e40373b8d46e"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:32:03.022044"], ["updated_at", "2015-11-07 03:32:03.022044"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/variants/7071740b-d79a-4319-a75c-737746051974" for 127.0.0.1 at 2015-11-06 22:32:03 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"7071740b-d79a-4319-a75c-737746051974", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"7071740b-d79a-4319-a75c-737746051974"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "7071740b-d79a-4319-a75c-737746051974"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '7071740b-d79a-4319-a75c-737746051974') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:32:03.040836"], ["id", "7071740b-d79a-4319-a75c-737746051974"]]  (0.3ms) COMMIT Completed 200 OK in 17ms (Views: 0.3ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "7071740b-d79a-4319-a75c-737746051974"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:32:57.504457"], ["updated_at", "2015-11-07 03:32:57.504457"]]  (4.2ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:32:57 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:32:57.553109"], ["updated_at", "2015-11-07 03:32:57.553109"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/f61a51c3-fb0f-418f-a1b0-39486e7e6c37" for 127.0.0.1 at 2015-11-06 22:32:57 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"f61a51c3-fb0f-418f-a1b0-39486e7e6c37"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "f61a51c3-fb0f-418f-a1b0-39486e7e6c37"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-06 22:32:57 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 03:32:57.578814"], ["updated_at", "2015-11-07 03:32:57.578814"]]  (0.4ms) COMMIT Completed 201 Created in 9ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:32:57.593659"], ["updated_at", "2015-11-07 03:32:57.593659"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/105a3235-10ce-407f-a2e3-16cfe74eea75" for 127.0.0.1 at 2015-11-06 22:32:57 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"105a3235-10ce-407f-a2e3-16cfe74eea75"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "105a3235-10ce-407f-a2e3-16cfe74eea75"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "105a3235-10ce-407f-a2e3-16cfe74eea75"]]  (0.4ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 03:32:57.617009"], ["updated_at", "2015-11-07 03:32:57.617009"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/abcc801c-84c4-423b-8488-db36e9ad9c1f" for 127.0.0.1 at 2015-11-06 22:32:57 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"abcc801c-84c4-423b-8488-db36e9ad9c1f", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"abcc801c-84c4-423b-8488-db36e9ad9c1f"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "abcc801c-84c4-423b-8488-db36e9ad9c1f"]] Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'abcc801c-84c4-423b-8488-db36e9ad9c1f') LIMIT 1 SQL (0.5ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 03:32:57.633751"], ["id", "abcc801c-84c4-423b-8488-db36e9ad9c1f"]]  (0.4ms) COMMIT Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "abcc801c-84c4-423b-8488-db36e9ad9c1f"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (24.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:33:13.710743"], ["updated_at", "2015-11-07 15:33:13.710743"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 10:33:13 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:33:13.782017"], ["updated_at", "2015-11-07 15:33:13.782017"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/a2058c16-b3e1-4eb6-972f-d557d9df0acd" for 127.0.0.1 at 2015-11-07 10:33:13 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"a2058c16-b3e1-4eb6-972f-d557d9df0acd"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "a2058c16-b3e1-4eb6-972f-d557d9df0acd"]] Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 10:33:13 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 15:33:13.809835"], ["updated_at", "2015-11-07 15:33:13.809835"]]  (0.4ms) COMMIT Completed 201 Created in 9ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:33:13.823695"], ["updated_at", "2015-11-07 15:33:13.823695"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/d07f1c8a-4dd2-40ab-8789-0e5f0fec7389" for 127.0.0.1 at 2015-11-07 10:33:13 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"d07f1c8a-4dd2-40ab-8789-0e5f0fec7389"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "d07f1c8a-4dd2-40ab-8789-0e5f0fec7389"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "d07f1c8a-4dd2-40ab-8789-0e5f0fec7389"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:33:13.843436"], ["updated_at", "2015-11-07 15:33:13.843436"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/9f3cbffa-d31d-4a85-a77c-1b24b8e53f76" for 127.0.0.1 at 2015-11-07 10:33:13 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"9f3cbffa-d31d-4a85-a77c-1b24b8e53f76", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"9f3cbffa-d31d-4a85-a77c-1b24b8e53f76"}  (0.1ms) BEGIN Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "9f3cbffa-d31d-4a85-a77c-1b24b8e53f76"]] Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '9f3cbffa-d31d-4a85-a77c-1b24b8e53f76') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 15:33:13.861378"], ["id", "9f3cbffa-d31d-4a85-a77c-1b24b8e53f76"]]  (0.5ms) COMMIT Completed 200 OK in 18ms (Views: 0.3ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9f3cbffa-d31d-4a85-a77c-1b24b8e53f76"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:33:28.600324"], ["updated_at", "2015-11-07 15:33:28.600324"]]  (3.1ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 10:33:28 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.3ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:33:28.638782"], ["updated_at", "2015-11-07 15:33:28.638782"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/d1f6cd3c-012d-4fbf-97ea-08492ce9bb63" for 127.0.0.1 at 2015-11-07 10:33:28 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"d1f6cd3c-012d-4fbf-97ea-08492ce9bb63"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "d1f6cd3c-012d-4fbf-97ea-08492ce9bb63"]] Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 10:33:28 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 15:33:28.667857"], ["updated_at", "2015-11-07 15:33:28.667857"]]  (0.3ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:33:28.681886"], ["updated_at", "2015-11-07 15:33:28.681886"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/ae9a488e-3f94-4dd3-9734-c519ee82a895" for 127.0.0.1 at 2015-11-07 10:33:28 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"ae9a488e-3f94-4dd3-9734-c519ee82a895"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "ae9a488e-3f94-4dd3-9734-c519ee82a895"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "ae9a488e-3f94-4dd3-9734-c519ee82a895"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:33:28.700338"], ["updated_at", "2015-11-07 15:33:28.700338"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/55a9bc75-e95e-4309-9e40-2e3e9247be7c" for 127.0.0.1 at 2015-11-07 10:33:28 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"55a9bc75-e95e-4309-9e40-2e3e9247be7c", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"55a9bc75-e95e-4309-9e40-2e3e9247be7c"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "55a9bc75-e95e-4309-9e40-2e3e9247be7c"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '55a9bc75-e95e-4309-9e40-2e3e9247be7c') LIMIT 1 SQL (0.5ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 15:33:28.713271"], ["id", "55a9bc75-e95e-4309-9e40-2e3e9247be7c"]]  (0.4ms) COMMIT Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "55a9bc75-e95e-4309-9e40-2e3e9247be7c"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:00.247566"], ["updated_at", "2015-11-07 15:34:00.247566"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 10:34:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:00.296280"], ["updated_at", "2015-11-07 15:34:00.296280"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/1c43c260-e41f-436f-abd4-5258be0331a2" for 127.0.0.1 at 2015-11-07 10:34:00 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"1c43c260-e41f-436f-abd4-5258be0331a2"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "1c43c260-e41f-436f-abd4-5258be0331a2"]] Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 10:34:00 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 15:34:00.325643"], ["updated_at", "2015-11-07 15:34:00.325643"]]  (0.5ms) COMMIT Completed 201 Created in 11ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:00.343300"], ["updated_at", "2015-11-07 15:34:00.343300"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/14dd2dcd-545f-4b2c-ad7b-4cd65593593e" for 127.0.0.1 at 2015-11-07 10:34:00 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"14dd2dcd-545f-4b2c-ad7b-4cd65593593e"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "14dd2dcd-545f-4b2c-ad7b-4cd65593593e"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "14dd2dcd-545f-4b2c-ad7b-4cd65593593e"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:00.360954"], ["updated_at", "2015-11-07 15:34:00.360954"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/variants/0f270ded-a422-4622-8965-d029ffa1171b" for 127.0.0.1 at 2015-11-07 10:34:00 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"0f270ded-a422-4622-8965-d029ffa1171b", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"0f270ded-a422-4622-8965-d029ffa1171b"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "0f270ded-a422-4622-8965-d029ffa1171b"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '0f270ded-a422-4622-8965-d029ffa1171b') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 15:34:00.374795"], ["id", "0f270ded-a422-4622-8965-d029ffa1171b"]]  (0.6ms) COMMIT Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "0f270ded-a422-4622-8965-d029ffa1171b"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:09.119471"], ["updated_at", "2015-11-07 15:34:09.119471"]]  (3.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 10:34:09 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:09.166921"], ["updated_at", "2015-11-07 15:34:09.166921"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/dda39625-c756-42f8-b7b9-ab1c3e58b60d" for 127.0.0.1 at 2015-11-07 10:34:09 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"dda39625-c756-42f8-b7b9-ab1c3e58b60d"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "dda39625-c756-42f8-b7b9-ab1c3e58b60d"]] Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 10:34:09 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 15:34:09.198386"], ["updated_at", "2015-11-07 15:34:09.198386"]]  (0.4ms) COMMIT Completed 201 Created in 11ms (Views: 0.3ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:09.211844"], ["updated_at", "2015-11-07 15:34:09.211844"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/3d0ff6ef-bd7e-47b3-9713-b405af66fa9a" for 127.0.0.1 at 2015-11-07 10:34:09 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"3d0ff6ef-bd7e-47b3-9713-b405af66fa9a"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "3d0ff6ef-bd7e-47b3-9713-b405af66fa9a"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "3d0ff6ef-bd7e-47b3-9713-b405af66fa9a"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:09.233361"], ["updated_at", "2015-11-07 15:34:09.233361"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/02041b52-1362-4294-ba79-6b89f0cfe839" for 127.0.0.1 at 2015-11-07 10:34:09 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"02041b52-1362-4294-ba79-6b89f0cfe839", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"02041b52-1362-4294-ba79-6b89f0cfe839"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "02041b52-1362-4294-ba79-6b89f0cfe839"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '02041b52-1362-4294-ba79-6b89f0cfe839') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 15:34:09.246716"], ["id", "02041b52-1362-4294-ba79-6b89f0cfe839"]]  (0.3ms) COMMIT Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 1.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "02041b52-1362-4294-ba79-6b89f0cfe839"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:21.437757"], ["updated_at", "2015-11-07 15:34:21.437757"]]  (3.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 10:34:21 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:21.483493"], ["updated_at", "2015-11-07 15:34:21.483493"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/f9972d0f-fb3f-41be-9339-6f182ca2e825" for 127.0.0.1 at 2015-11-07 10:34:21 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"f9972d0f-fb3f-41be-9339-6f182ca2e825"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "f9972d0f-fb3f-41be-9339-6f182ca2e825"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 10:34:21 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 15:34:21.508082"], ["updated_at", "2015-11-07 15:34:21.508082"]]  (0.5ms) COMMIT Completed 201 Created in 11ms (Views: 0.5ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:21.527274"], ["updated_at", "2015-11-07 15:34:21.527274"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/0bf3e6f9-4c61-4c32-8e04-50ab7f818d03" for 127.0.0.1 at 2015-11-07 10:34:21 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"0bf3e6f9-4c61-4c32-8e04-50ab7f818d03"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "0bf3e6f9-4c61-4c32-8e04-50ab7f818d03"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "0bf3e6f9-4c61-4c32-8e04-50ab7f818d03"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 15:34:21.544635"], ["updated_at", "2015-11-07 15:34:21.544635"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/a1124f35-4976-4c68-8b2e-fdc82ce807c1" for 127.0.0.1 at 2015-11-07 10:34:21 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"a1124f35-4976-4c68-8b2e-fdc82ce807c1", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"a1124f35-4976-4c68-8b2e-fdc82ce807c1"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "a1124f35-4976-4c68-8b2e-fdc82ce807c1"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'a1124f35-4976-4c68-8b2e-fdc82ce807c1') LIMIT 1 SQL (0.6ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 15:34:21.557072"], ["id", "a1124f35-4976-4c68-8b2e-fdc82ce807c1"]]  (0.6ms) COMMIT Completed 200 OK in 14ms (Views: 0.3ms | ActiveRecord: 2.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a1124f35-4976-4c68-8b2e-fdc82ce807c1"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (26.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:13:12.193797"], ["updated_at", "2015-11-07 20:13:12.193797"]]  (1.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:13:12 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:13:12.266341"], ["updated_at", "2015-11-07 20:13:12.266341"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/c1b127c4-b5e0-472a-b90d-9461adc661a4" for 127.0.0.1 at 2015-11-07 15:13:12 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"c1b127c4-b5e0-472a-b90d-9461adc661a4"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c1b127c4-b5e0-472a-b90d-9461adc661a4"]] Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:13:12 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 20:13:12.295918"], ["updated_at", "2015-11-07 20:13:12.295918"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:13:12.309617"], ["updated_at", "2015-11-07 20:13:12.309617"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/7b6926a7-163c-4ef5-95f3-077489bdb3ab" for 127.0.0.1 at 2015-11-07 15:13:12 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"7b6926a7-163c-4ef5-95f3-077489bdb3ab"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "7b6926a7-163c-4ef5-95f3-077489bdb3ab"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "7b6926a7-163c-4ef5-95f3-077489bdb3ab"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:13:12.328513"], ["updated_at", "2015-11-07 20:13:12.328513"]]  (0.5ms) COMMIT Started PUT "/jsonapi/variants/86dcf08f-038f-4863-b88b-3dbc07a70dc2" for 127.0.0.1 at 2015-11-07 15:13:12 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"86dcf08f-038f-4863-b88b-3dbc07a70dc2", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"86dcf08f-038f-4863-b88b-3dbc07a70dc2"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "86dcf08f-038f-4863-b88b-3dbc07a70dc2"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '86dcf08f-038f-4863-b88b-3dbc07a70dc2') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 20:13:12.342357"], ["id", "86dcf08f-038f-4863-b88b-3dbc07a70dc2"]]  (0.3ms) COMMIT Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "86dcf08f-038f-4863-b88b-3dbc07a70dc2"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:13:21.176891"], ["updated_at", "2015-11-07 20:13:21.176891"]]  (3.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:13:21 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:13:21.216997"], ["updated_at", "2015-11-07 20:13:21.216997"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/43b76e54-a840-4361-bbe5-196008beab0d" for 127.0.0.1 at 2015-11-07 15:13:21 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"43b76e54-a840-4361-bbe5-196008beab0d"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "43b76e54-a840-4361-bbe5-196008beab0d"]] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:13:21 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 20:13:21.244913"], ["updated_at", "2015-11-07 20:13:21.244913"]]  (0.5ms) COMMIT Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:13:21.258549"], ["updated_at", "2015-11-07 20:13:21.258549"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/5cc78f9b-e931-4b55-a202-4bdabb2d7899" for 127.0.0.1 at 2015-11-07 15:13:21 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"5cc78f9b-e931-4b55-a202-4bdabb2d7899"}  (0.3ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "5cc78f9b-e931-4b55-a202-4bdabb2d7899"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "5cc78f9b-e931-4b55-a202-4bdabb2d7899"]]  (0.3ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:13:21.282906"], ["updated_at", "2015-11-07 20:13:21.282906"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/9ac5c441-c24d-4c2a-b60a-6836a4148972" for 127.0.0.1 at 2015-11-07 15:13:21 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"9ac5c441-c24d-4c2a-b60a-6836a4148972", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"9ac5c441-c24d-4c2a-b60a-6836a4148972"}  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "9ac5c441-c24d-4c2a-b60a-6836a4148972"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '9ac5c441-c24d-4c2a-b60a-6836a4148972') LIMIT 1 SQL (0.5ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 20:13:21.301692"], ["id", "9ac5c441-c24d-4c2a-b60a-6836a4148972"]]  (0.3ms) COMMIT Completed 200 OK in 17ms (Views: 0.3ms | ActiveRecord: 2.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9ac5c441-c24d-4c2a-b60a-6836a4148972"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Started GET "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 15:21:08 -0500 Processing by Strain::Jsonapi::ArticlesController#index as HTML Strain::Article Load (1.5ms) SELECT "strain_articles".* FROM "strain_articles" ORDER BY "strain_articles"."id" ASC Completed 200 OK in 14ms (Views: 0.2ms | ActiveRecord: 6.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:22:21.088764"], ["updated_at", "2015-11-07 20:22:21.088764"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a63e84df-df33-46b6-a4bf-50027dee8784"], ["created_at", "2015-11-07 20:22:21.101242"], ["updated_at", "2015-11-07 20:22:21.101242"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:22:21 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK SQL (1.1ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:22:55.306861"], ["updated_at", "2015-11-07 20:22:55.306861"]]  (3.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fd24b0d5-af10-4832-b509-57647e0b9be9"], ["created_at", "2015-11-07 20:22:55.325989"], ["updated_at", "2015-11-07 20:22:55.325989"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:22:55 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:27:24.752429"], ["updated_at", "2015-11-07 20:27:24.752429"]]  (3.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:27:24 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:27:24.799049"], ["updated_at", "2015-11-07 20:27:24.799049"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/eeee8d64-92d8-44b8-bb61-a161456aacdc" for 127.0.0.1 at 2015-11-07 15:27:24 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"eeee8d64-92d8-44b8-bb61-a161456aacdc"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "eeee8d64-92d8-44b8-bb61-a161456aacdc"]] Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:27:24 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 20:27:24.827887"], ["updated_at", "2015-11-07 20:27:24.827887"]]  (0.5ms) COMMIT Completed 201 Created in 11ms (Views: 0.5ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:27:24.845883"], ["updated_at", "2015-11-07 20:27:24.845883"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/3400f423-f458-47d5-82d9-475866fee662" for 127.0.0.1 at 2015-11-07 15:27:24 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"3400f423-f458-47d5-82d9-475866fee662"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "3400f423-f458-47d5-82d9-475866fee662"]] SQL (0.6ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "3400f423-f458-47d5-82d9-475866fee662"]]  (0.6ms) COMMIT Completed 204 No Content in 6ms (Views: 0.2ms | ActiveRecord: 1.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:27:24.870864"], ["updated_at", "2015-11-07 20:27:24.870864"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/e04e956a-76c1-49b1-ab10-45d38376203b" for 127.0.0.1 at 2015-11-07 15:27:24 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"e04e956a-76c1-49b1-ab10-45d38376203b", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"e04e956a-76c1-49b1-ab10-45d38376203b"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "e04e956a-76c1-49b1-ab10-45d38376203b"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'e04e956a-76c1-49b1-ab10-45d38376203b') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 20:27:24.883050"], ["id", "e04e956a-76c1-49b1-ab10-45d38376203b"]]  (0.6ms) COMMIT Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e04e956a-76c1-49b1-ab10-45d38376203b"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:27:28.298440"], ["updated_at", "2015-11-07 20:27:28.298440"]]  (3.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:27:28 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:27:28.340972"], ["updated_at", "2015-11-07 20:27:28.340972"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/a3b5a0a5-9d03-4084-b84a-092a66a80c62" for 127.0.0.1 at 2015-11-07 15:27:28 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"a3b5a0a5-9d03-4084-b84a-092a66a80c62"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "a3b5a0a5-9d03-4084-b84a-092a66a80c62"]] Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:27:28 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 20:27:28.373478"], ["updated_at", "2015-11-07 20:27:28.373478"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:27:28.387378"], ["updated_at", "2015-11-07 20:27:28.387378"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/6d88d0e3-eecd-4310-959d-cff81704f884" for 127.0.0.1 at 2015-11-07 15:27:28 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"6d88d0e3-eecd-4310-959d-cff81704f884"}  (0.2ms) BEGIN Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "6d88d0e3-eecd-4310-959d-cff81704f884"]] SQL (0.4ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "6d88d0e3-eecd-4310-959d-cff81704f884"]]  (0.5ms) COMMIT Completed 204 No Content in 6ms (Views: 0.2ms | ActiveRecord: 1.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:27:28.410733"], ["updated_at", "2015-11-07 20:27:28.410733"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/c5ebb012-8071-4129-9811-a05b7341ca09" for 127.0.0.1 at 2015-11-07 15:27:28 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"c5ebb012-8071-4129-9811-a05b7341ca09", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"c5ebb012-8071-4129-9811-a05b7341ca09"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c5ebb012-8071-4129-9811-a05b7341ca09"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'c5ebb012-8071-4129-9811-a05b7341ca09') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 20:27:28.423664"], ["id", "c5ebb012-8071-4129-9811-a05b7341ca09"]]  (0.5ms) COMMIT Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 1.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c5ebb012-8071-4129-9811-a05b7341ca09"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:28:35.793125"], ["updated_at", "2015-11-07 20:28:35.793125"]]  (3.2ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "45126b64-273e-4441-92c9-f126f4c72a31"], ["created_at", "2015-11-07 20:28:35.807352"], ["updated_at", "2015-11-07 20:28:35.807352"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:28:35 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:28:35.844492"], ["updated_at", "2015-11-07 20:28:35.844492"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "12d6cf1c-097d-4982-bf29-35643b76d9fa"], ["created_at", "2015-11-07 20:28:35.848537"], ["updated_at", "2015-11-07 20:28:35.848537"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/53d081f8-afbf-4c4a-badd-a0b72219c91f" for 127.0.0.1 at 2015-11-07 15:28:35 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"53d081f8-afbf-4c4a-badd-a0b72219c91f"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "53d081f8-afbf-4c4a-badd-a0b72219c91f"]] Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:29:59.969126"], ["updated_at", "2015-11-07 20:29:59.969126"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2ad2fe28-43fb-4fae-8761-4ba0de32979f"], ["created_at", "2015-11-07 20:29:59.986709"], ["updated_at", "2015-11-07 20:29:59.986709"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:29:59 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.7ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:30:00.029842"], ["updated_at", "2015-11-07 20:30:00.029842"]]  (0.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a0373dea-03be-4747-815a-5d1836633db5"], ["created_at", "2015-11-07 20:30:00.034208"], ["updated_at", "2015-11-07 20:30:00.034208"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/b6043254-18d9-4a9e-82bf-feafc366462f" for 127.0.0.1 at 2015-11-07 15:30:00 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"b6043254-18d9-4a9e-82bf-feafc366462f"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "b6043254-18d9-4a9e-82bf-feafc366462f"]] Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:31:58.087416"], ["updated_at", "2015-11-07 20:31:58.087416"]]  (3.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "376dbf27-a76c-4f79-bbbd-b14f003bbc5c"], ["created_at", "2015-11-07 20:31:58.106993"], ["updated_at", "2015-11-07 20:31:58.106993"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:31:58 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.3ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:31:58.151067"], ["updated_at", "2015-11-07 20:31:58.151067"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ec2f999d-280d-4b9c-9ad3-7ef9a4766fa5"], ["created_at", "2015-11-07 20:31:58.155858"], ["updated_at", "2015-11-07 20:31:58.155858"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/5132d693-19e9-4fd0-bb5e-200867dc462a" for 127.0.0.1 at 2015-11-07 15:31:58 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"5132d693-19e9-4fd0-bb5e-200867dc462a"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5132d693-19e9-4fd0-bb5e-200867dc462a"]] Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:32:56.021095"], ["updated_at", "2015-11-07 20:32:56.021095"]]  (3.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e8c53d22-4472-472d-b627-f48d3057cc7a"], ["created_at", "2015-11-07 20:32:56.042138"], ["updated_at", "2015-11-07 20:32:56.042138"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:32:56 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:32:56.081286"], ["updated_at", "2015-11-07 20:32:56.081286"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0cc85ac7-ee70-4e3c-9d08-037b699958d5"], ["created_at", "2015-11-07 20:32:56.087236"], ["updated_at", "2015-11-07 20:32:56.087236"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/458ad030-7f75-4ba7-87cb-e343cd93b2bd" for 127.0.0.1 at 2015-11-07 15:32:56 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"458ad030-7f75-4ba7-87cb-e343cd93b2bd"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "458ad030-7f75-4ba7-87cb-e343cd93b2bd"]] Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:34:03.713228"], ["updated_at", "2015-11-07 20:34:03.713228"]]  (3.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cd9bd4e4-2ce6-4d18-b50f-138cd7ee34e8"], ["created_at", "2015-11-07 20:34:03.733494"], ["updated_at", "2015-11-07 20:34:03.733494"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:34:03 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:34:03.773898"], ["updated_at", "2015-11-07 20:34:03.773898"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "35fd4651-f975-449c-81d8-f31961c937d5"], ["created_at", "2015-11-07 20:34:03.780335"], ["updated_at", "2015-11-07 20:34:03.780335"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/5507fee6-588a-4a10-b5cf-4f32ad31d5da" for 127.0.0.1 at 2015-11-07 15:34:03 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"5507fee6-588a-4a10-b5cf-4f32ad31d5da"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5507fee6-588a-4a10-b5cf-4f32ad31d5da"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "35fd4651-f975-449c-81d8-f31961c937d5"]] Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:34:20.314255"], ["updated_at", "2015-11-07 20:34:20.314255"]]  (3.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "847dd7e1-d8e2-4d19-8490-43d6d1e76023"], ["created_at", "2015-11-07 20:34:20.334087"], ["updated_at", "2015-11-07 20:34:20.334087"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:34:20 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:34:20.371889"], ["updated_at", "2015-11-07 20:34:20.371889"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2168caf9-8f59-4d52-8c0f-e4f774ab2991"], ["created_at", "2015-11-07 20:34:20.376282"], ["updated_at", "2015-11-07 20:34:20.376282"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/2bc1dcaa-baa6-459f-9bb1-388aabed2ef5" for 127.0.0.1 at 2015-11-07 15:34:20 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"2bc1dcaa-baa6-459f-9bb1-388aabed2ef5"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2bc1dcaa-baa6-459f-9bb1-388aabed2ef5"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2168caf9-8f59-4d52-8c0f-e4f774ab2991"]] Completed 200 OK in 13ms (Views: 1.6ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:34:31.081832"], ["updated_at", "2015-11-07 20:34:31.081832"]]  (3.2ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f4ab4850-0010-4327-9730-63839cbfd9b0"], ["created_at", "2015-11-07 20:34:31.097558"], ["updated_at", "2015-11-07 20:34:31.097558"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:34:31 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:34:31.141371"], ["updated_at", "2015-11-07 20:34:31.141371"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "231f1181-6ee9-4dbf-8339-9dd67e3bbf48"], ["created_at", "2015-11-07 20:34:31.146803"], ["updated_at", "2015-11-07 20:34:31.146803"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/ac3f8fca-f78a-489f-81bb-48b72c9198ad" for 127.0.0.1 at 2015-11-07 15:34:31 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"ac3f8fca-f78a-489f-81bb-48b72c9198ad"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ac3f8fca-f78a-489f-81bb-48b72c9198ad"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "231f1181-6ee9-4dbf-8339-9dd67e3bbf48"]] Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:47:26.746222"], ["updated_at", "2015-11-07 20:47:26.746222"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "04b619ab-d227-4412-8924-4b42379c6a79"], ["created_at", "2015-11-07 20:47:26.759341"], ["updated_at", "2015-11-07 20:47:26.759341"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:47:26 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:47:26.799587"], ["updated_at", "2015-11-07 20:47:26.799587"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "80803f85-f6a6-4b20-aa70-3e44e3cd89f3"], ["created_at", "2015-11-07 20:47:26.803413"], ["updated_at", "2015-11-07 20:47:26.803413"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/c3a1cee7-a37b-4196-a18c-6ceda8873328" for 127.0.0.1 at 2015-11-07 15:47:26 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"c3a1cee7-a37b-4196-a18c-6ceda8873328"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "c3a1cee7-a37b-4196-a18c-6ceda8873328"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "80803f85-f6a6-4b20-aa70-3e44e3cd89f3"]] Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:47:26.838814"], ["updated_at", "2015-11-07 20:47:26.838814"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 15:47:26 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>"{}"}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"1024b524-cbca-4078-838e-83197efb2ae4"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1024b524-cbca-4078-838e-83197efb2ae4"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 15ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (5.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:47:55.206446"], ["updated_at", "2015-11-07 20:47:55.206446"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fa1bae8a-3d8f-44fd-bcfe-ff4d35097675"], ["created_at", "2015-11-07 20:47:55.223139"], ["updated_at", "2015-11-07 20:47:55.223139"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:47:55 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:47:55.267721"], ["updated_at", "2015-11-07 20:47:55.267721"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6bcaf76b-02a1-40b9-9f8c-dedfd45d64a9"], ["created_at", "2015-11-07 20:47:55.272027"], ["updated_at", "2015-11-07 20:47:55.272027"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/b0be7f88-8168-4784-b8be-0eeebc7f84a1" for 127.0.0.1 at 2015-11-07 15:47:55 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"b0be7f88-8168-4784-b8be-0eeebc7f84a1"} Strain::Article Load (0.6ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "b0be7f88-8168-4784-b8be-0eeebc7f84a1"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6bcaf76b-02a1-40b9-9f8c-dedfd45d64a9"]] Completed 200 OK in 17ms (Views: 1.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:47:55.310050"], ["updated_at", "2015-11-07 20:47:55.310050"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 15:47:55 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>"{}"}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"bf109841-0190-4c58-8daa-d54b291246a1"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "bf109841-0190-4c58-8daa-d54b291246a1"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 13ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (3.1ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:48:49.926464"], ["updated_at", "2015-11-07 20:48:49.926464"]]  (3.2ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8046b60e-e703-4a86-9ab8-35a07f6ebd16"], ["created_at", "2015-11-07 20:48:49.940955"], ["updated_at", "2015-11-07 20:48:49.940955"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:48:49 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:48:49.986564"], ["updated_at", "2015-11-07 20:48:49.986564"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "71467aa9-de6d-4845-b784-df3b9c236683"], ["created_at", "2015-11-07 20:48:49.991834"], ["updated_at", "2015-11-07 20:48:49.991834"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/45b407e7-00f0-4755-a094-cbe0bacdab62" for 127.0.0.1 at 2015-11-07 15:48:49 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"45b407e7-00f0-4755-a094-cbe0bacdab62"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "45b407e7-00f0-4755-a094-cbe0bacdab62"]] Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "71467aa9-de6d-4845-b784-df3b9c236683"]] Completed 200 OK in 15ms (Views: 1.7ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:48:50.030993"], ["updated_at", "2015-11-07 20:48:50.030993"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 15:48:50 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"d9cd7545-e3c3-4698-8851-7aeb51d8686a"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "d9cd7545-e3c3-4698-8851-7aeb51d8686a"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "d9cd7545-e3c3-4698-8851-7aeb51d8686a"], ["created_at", "2015-11-07 20:48:50.041913"], ["updated_at", "2015-11-07 20:48:50.041913"]]  (0.3ms) COMMIT Completed 201 Created in 11ms (Views: 0.7ms | ActiveRecord: 1.7ms)  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (3.3ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:51:19.086636"], ["updated_at", "2015-11-07 20:51:19.086636"]]  (2.3ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "de4bc551-fb5d-4c1a-b764-f17e38a3ce90"], ["created_at", "2015-11-07 20:51:19.107606"], ["updated_at", "2015-11-07 20:51:19.107606"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 15:51:19 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:51:19.152542"], ["updated_at", "2015-11-07 20:51:19.152542"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "99caf6aa-51d1-4d35-a1d0-2515cf2dd02a"], ["created_at", "2015-11-07 20:51:19.156861"], ["updated_at", "2015-11-07 20:51:19.156861"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/531650ad-fbef-4d23-989c-55acf759901d" for 127.0.0.1 at 2015-11-07 15:51:19 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"531650ad-fbef-4d23-989c-55acf759901d"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "531650ad-fbef-4d23-989c-55acf759901d"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "99caf6aa-51d1-4d35-a1d0-2515cf2dd02a"]] Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 20:51:19.189613"], ["updated_at", "2015-11-07 20:51:19.189613"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 15:51:19 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"8cd2be00-099a-46b6-9ce6-30b2e973d777"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "8cd2be00-099a-46b6-9ce6-30b2e973d777"]] Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "8cd2be00-099a-46b6-9ce6-30b2e973d777"], ["created_at", "2015-11-07 20:51:19.201552"], ["updated_at", "2015-11-07 20:51:19.201552"]]  (0.4ms) COMMIT Completed 201 Created in 11ms (Views: 0.7ms | ActiveRecord: 2.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (5.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:02:55.273000"], ["updated_at", "2015-11-07 21:02:55.273000"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (1.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9cd5d2f1-cc18-413f-aaf8-16146967669f"], ["created_at", "2015-11-07 21:02:55.293423"], ["updated_at", "2015-11-07 21:02:55.293423"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:02:55 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:02:55.343661"], ["updated_at", "2015-11-07 21:02:55.343661"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "64db5d39-64a4-401a-b443-4402ca3ab734"], ["created_at", "2015-11-07 21:02:55.347398"], ["updated_at", "2015-11-07 21:02:55.347398"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/1de21d8a-b10d-4110-aed1-e4be9960633a" for 127.0.0.1 at 2015-11-07 16:02:55 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"1de21d8a-b10d-4110-aed1-e4be9960633a"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "1de21d8a-b10d-4110-aed1-e4be9960633a"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "64db5d39-64a4-401a-b443-4402ca3ab734"]] Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:02:55.385657"], ["updated_at", "2015-11-07 21:02:55.385657"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 16:02:55 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"94b02e0f-9ef1-47a1-a0ba-cbea5c4d0244"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "94b02e0f-9ef1-47a1-a0ba-cbea5c4d0244"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "94b02e0f-9ef1-47a1-a0ba-cbea5c4d0244"], ["created_at", "2015-11-07 21:02:55.395372"], ["updated_at", "2015-11-07 21:02:55.395372"]]  (0.5ms) COMMIT Completed 201 Created in 8ms (Views: 0.8ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:02:55.417471"], ["updated_at", "2015-11-07 21:02:55.417471"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/2b74f274-8130-412d-9c70-38b668f47962" for 127.0.0.1 at 2015-11-07 16:02:55 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"2b74f274-8130-412d-9c70-38b668f47962"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2b74f274-8130-412d-9c70-38b668f47962"]]  (0.1ms) ROLLBACK Completed 404 Not Found in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:10.914517"], ["updated_at", "2015-11-07 21:03:10.914517"]]  (3.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ee825f33-65e9-4fb9-b184-3f01765dd194"], ["created_at", "2015-11-07 21:03:10.933649"], ["updated_at", "2015-11-07 21:03:10.933649"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:03:10 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:10.978799"], ["updated_at", "2015-11-07 21:03:10.978799"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fbc45a68-072b-4dc8-b2b9-483fed877fe5"], ["created_at", "2015-11-07 21:03:10.983049"], ["updated_at", "2015-11-07 21:03:10.983049"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/c2c1f96e-e29f-4233-8163-b0947d2c2481" for 127.0.0.1 at 2015-11-07 16:03:10 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"c2c1f96e-e29f-4233-8163-b0947d2c2481"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "c2c1f96e-e29f-4233-8163-b0947d2c2481"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fbc45a68-072b-4dc8-b2b9-483fed877fe5"]] Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:11.015305"], ["updated_at", "2015-11-07 21:03:11.015305"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 16:03:11 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"c5f88f81-705d-41bd-ba60-9e5acba1cc2c"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c5f88f81-705d-41bd-ba60-9e5acba1cc2c"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "c5f88f81-705d-41bd-ba60-9e5acba1cc2c"], ["created_at", "2015-11-07 21:03:11.027595"], ["updated_at", "2015-11-07 21:03:11.027595"]]  (0.5ms) COMMIT Completed 201 Created in 12ms (Views: 0.7ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:11.046648"], ["updated_at", "2015-11-07 21:03:11.046648"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8848d67a-d526-43dc-9772-928901382254"], ["created_at", "2015-11-07 21:03:11.050761"], ["updated_at", "2015-11-07 21:03:11.050761"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/articles/16b4e490-1d7e-4581-99b9-06673af33dac" for 127.0.0.1 at 2015-11-07 16:03:11 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"16b4e490-1d7e-4581-99b9-06673af33dac"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "16b4e490-1d7e-4581-99b9-06673af33dac"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "16b4e490-1d7e-4581-99b9-06673af33dac"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "strain_articles"  (0.3ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:41.737987"], ["updated_at", "2015-11-07 21:03:41.737987"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "34965870-5970-4cbd-a80b-409294939d52"], ["created_at", "2015-11-07 21:03:41.753289"], ["updated_at", "2015-11-07 21:03:41.753289"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:03:41 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:41.800018"], ["updated_at", "2015-11-07 21:03:41.800018"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3784377a-112a-4dff-9285-8e5b401c54cf"], ["created_at", "2015-11-07 21:03:41.804138"], ["updated_at", "2015-11-07 21:03:41.804138"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/6bbe13da-ea54-43a5-b240-27b556d31bc4" for 127.0.0.1 at 2015-11-07 16:03:41 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"6bbe13da-ea54-43a5-b240-27b556d31bc4"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "6bbe13da-ea54-43a5-b240-27b556d31bc4"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "3784377a-112a-4dff-9285-8e5b401c54cf"]] Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:41.840793"], ["updated_at", "2015-11-07 21:03:41.840793"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 16:03:41 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"3ccd1c83-2e5b-4588-b758-18d53ac1209b"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "3ccd1c83-2e5b-4588-b758-18d53ac1209b"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "3ccd1c83-2e5b-4588-b758-18d53ac1209b"], ["created_at", "2015-11-07 21:03:41.848507"], ["updated_at", "2015-11-07 21:03:41.848507"]]  (0.5ms) COMMIT Completed 201 Created in 8ms (Views: 0.8ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:41.864473"], ["updated_at", "2015-11-07 21:03:41.864473"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b8016365-cef9-4071-be61-97331d8d88bd"], ["created_at", "2015-11-07 21:03:41.868471"], ["updated_at", "2015-11-07 21:03:41.868471"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/f6382b8b-b8b6-4393-b5e5-25ef1779b190" for 127.0.0.1 at 2015-11-07 16:03:41 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"f6382b8b-b8b6-4393-b5e5-25ef1779b190"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f6382b8b-b8b6-4393-b5e5-25ef1779b190"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "f6382b8b-b8b6-4393-b5e5-25ef1779b190"]]  (0.3ms) COMMIT Completed 204 No Content in 5ms (Views: 0.1ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:50.223335"], ["updated_at", "2015-11-07 21:03:50.223335"]]  (3.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9cef266e-9dda-4684-a813-89ab4207958c"], ["created_at", "2015-11-07 21:03:50.239262"], ["updated_at", "2015-11-07 21:03:50.239262"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:03:50 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:50.283011"], ["updated_at", "2015-11-07 21:03:50.283011"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a479a8d7-8eb0-4570-ac15-595a307816f8"], ["created_at", "2015-11-07 21:03:50.287153"], ["updated_at", "2015-11-07 21:03:50.287153"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/59404287-b6de-4cce-a25a-2a9b6d3f1d80" for 127.0.0.1 at 2015-11-07 16:03:50 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"59404287-b6de-4cce-a25a-2a9b6d3f1d80"} Strain::Article Load (1.0ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "59404287-b6de-4cce-a25a-2a9b6d3f1d80"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a479a8d7-8eb0-4570-ac15-595a307816f8"]] Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:50.320755"], ["updated_at", "2015-11-07 21:03:50.320755"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 16:03:50 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"ae99602c-a751-4a8f-9547-dd645a57fdbe"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ae99602c-a751-4a8f-9547-dd645a57fdbe"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "ae99602c-a751-4a8f-9547-dd645a57fdbe"], ["created_at", "2015-11-07 21:03:50.328108"], ["updated_at", "2015-11-07 21:03:50.328108"]]  (0.5ms) COMMIT Completed 201 Created in 11ms (Views: 1.3ms | ActiveRecord: 1.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:03:50.348622"], ["updated_at", "2015-11-07 21:03:50.348622"]]  (0.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "46a41f9c-7794-42d6-a653-5a11cad78197"], ["created_at", "2015-11-07 21:03:50.352866"], ["updated_at", "2015-11-07 21:03:50.352866"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/a415afb9-1415-4774-9921-53d9473197a5" for 127.0.0.1 at 2015-11-07 16:03:50 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"a415afb9-1415-4774-9921-53d9473197a5"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "a415afb9-1415-4774-9921-53d9473197a5"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "a415afb9-1415-4774-9921-53d9473197a5"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles"  (0.4ms) SELECT COUNT(*) FROM "strain_articles" Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants"  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.8ms) SELECT COUNT(*) FROM "strain_articles"  (0.4ms) ROLLBACK SQL (3.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:04:38.281854"], ["updated_at", "2015-11-07 21:04:38.281854"]]  (3.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3a510c6b-878c-4d18-a5ac-de01429ebf18"], ["created_at", "2015-11-07 21:04:38.299811"], ["updated_at", "2015-11-07 21:04:38.299811"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:04:38 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:04:38.343872"], ["updated_at", "2015-11-07 21:04:38.343872"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "22bab8b7-da6f-4642-88f1-6daea5f15d9f"], ["created_at", "2015-11-07 21:04:38.350376"], ["updated_at", "2015-11-07 21:04:38.350376"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/4a666b2a-bb58-4937-8ea1-5e235eb35ab3" for 127.0.0.1 at 2015-11-07 16:04:38 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"4a666b2a-bb58-4937-8ea1-5e235eb35ab3"} Strain::Article Load (0.8ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "4a666b2a-bb58-4937-8ea1-5e235eb35ab3"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "22bab8b7-da6f-4642-88f1-6daea5f15d9f"]] Completed 200 OK in 16ms (Views: 1.2ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:04:38.388941"], ["updated_at", "2015-11-07 21:04:38.388941"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 16:04:38 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"ef086e41-1077-4519-a889-3983194f07eb"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ef086e41-1077-4519-a889-3983194f07eb"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "ef086e41-1077-4519-a889-3983194f07eb"], ["created_at", "2015-11-07 21:04:38.396396"], ["updated_at", "2015-11-07 21:04:38.396396"]]  (0.6ms) COMMIT Completed 201 Created in 9ms (Views: 0.8ms | ActiveRecord: 1.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:04:38.415068"], ["updated_at", "2015-11-07 21:04:38.415068"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3cbb5674-93ce-4fc7-a597-f77e71027a98"], ["created_at", "2015-11-07 21:04:38.419283"], ["updated_at", "2015-11-07 21:04:38.419283"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/e8101ef5-9e12-4d7c-a736-832cc5111a64" for 127.0.0.1 at 2015-11-07 16:04:38 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"e8101ef5-9e12-4d7c-a736-832cc5111a64"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e8101ef5-9e12-4d7c-a736-832cc5111a64"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "e8101ef5-9e12-4d7c-a736-832cc5111a64"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:07:13.875057"], ["updated_at", "2015-11-07 21:07:13.875057"]]  (3.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ceae020a-66bc-43e6-82c8-04e75b1797e5"], ["created_at", "2015-11-07 21:07:13.896255"], ["updated_at", "2015-11-07 21:07:13.896255"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:07:13 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:07:13.941272"], ["updated_at", "2015-11-07 21:07:13.941272"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "38f6def4-c33f-4a98-b0a8-379cb3cfdf79"], ["created_at", "2015-11-07 21:07:13.945115"], ["updated_at", "2015-11-07 21:07:13.945115"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/c6957f19-dc61-4146-a50a-f905cfc63f6a" for 127.0.0.1 at 2015-11-07 16:07:13 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"c6957f19-dc61-4146-a50a-f905cfc63f6a"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "c6957f19-dc61-4146-a50a-f905cfc63f6a"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "38f6def4-c33f-4a98-b0a8-379cb3cfdf79"]] Completed 200 OK in 14ms (Views: 1.6ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:07:13.984246"], ["updated_at", "2015-11-07 21:07:13.984246"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 16:07:13 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"adc643ee-33f5-483e-9e99-34883818c083"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "adc643ee-33f5-483e-9e99-34883818c083"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "adc643ee-33f5-483e-9e99-34883818c083"], ["created_at", "2015-11-07 21:07:13.995630"], ["updated_at", "2015-11-07 21:07:13.995630"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.7ms | ActiveRecord: 1.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" SQL (0.8ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:07:14.018914"], ["updated_at", "2015-11-07 21:07:14.018914"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cad7b963-69b3-4975-a257-1e4670df2720"], ["created_at", "2015-11-07 21:07:14.022742"], ["updated_at", "2015-11-07 21:07:14.022742"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/62f3407b-7876-4f02-859f-5a2368cfd71a" for 127.0.0.1 at 2015-11-07 16:07:14 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"62f3407b-7876-4f02-859f-5a2368cfd71a"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "62f3407b-7876-4f02-859f-5a2368cfd71a"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "62f3407b-7876-4f02-859f-5a2368cfd71a"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:07:14.042352"], ["updated_at", "2015-11-07 21:07:14.042352"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "eb8eea3b-c0d0-4e54-84ac-4cf2bf7fe6cf"], ["created_at", "2015-11-07 21:07:14.046209"], ["updated_at", "2015-11-07 21:07:14.046209"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/articles/2ff06333-23ba-447d-8ea7-8946ff0f03d5" for 127.0.0.1 at 2015-11-07 16:07:14 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"2ff06333-23ba-447d-8ea7-8946ff0f03d5", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"2ff06333-23ba-447d-8ea7-8946ff0f03d5"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2ff06333-23ba-447d-8ea7-8946ff0f03d5"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "eb8eea3b-c0d0-4e54-84ac-4cf2bf7fe6cf"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '2ff06333-23ba-447d-8ea7-8946ff0f03d5') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-07 21:07:14.055521"], ["id", "2ff06333-23ba-447d-8ea7-8946ff0f03d5"]]  (0.6ms) COMMIT Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "2ff06333-23ba-447d-8ea7-8946ff0f03d5"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:08:00.410465"], ["updated_at", "2015-11-07 21:08:00.410465"]]  (3.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "508a96f1-18d5-4644-b47d-493e1bd1848c"], ["created_at", "2015-11-07 21:08:00.429508"], ["updated_at", "2015-11-07 21:08:00.429508"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:08:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (1.1ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:08:00.474553"], ["updated_at", "2015-11-07 21:08:00.474553"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8016240f-8e44-4d4e-b1cd-883dfc3889c6"], ["created_at", "2015-11-07 21:08:00.478182"], ["updated_at", "2015-11-07 21:08:00.478182"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/1e8ca420-fe4a-4475-af7f-0b2ff885d2fe" for 127.0.0.1 at 2015-11-07 16:08:00 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"1e8ca420-fe4a-4475-af7f-0b2ff885d2fe"} Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "1e8ca420-fe4a-4475-af7f-0b2ff885d2fe"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "8016240f-8e44-4d4e-b1cd-883dfc3889c6"]] Completed 200 OK in 17ms (Views: 1.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:08:00.517453"], ["updated_at", "2015-11-07 21:08:00.517453"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 16:08:00 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"f9ae5da0-f9c3-4b05-870c-ae185e79c50c"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f9ae5da0-f9c3-4b05-870c-ae185e79c50c"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "f9ae5da0-f9c3-4b05-870c-ae185e79c50c"], ["created_at", "2015-11-07 21:08:00.530205"], ["updated_at", "2015-11-07 21:08:00.530205"]]  (0.5ms) COMMIT Completed 201 Created in 13ms (Views: 1.1ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:08:00.549422"], ["updated_at", "2015-11-07 21:08:00.549422"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3b4fdd8d-4a58-4b28-86e5-dcf58986301c"], ["created_at", "2015-11-07 21:08:00.555245"], ["updated_at", "2015-11-07 21:08:00.555245"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/6b78e4f3-92db-4339-b9d0-87a3c96d3cac" for 127.0.0.1 at 2015-11-07 16:08:00 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"6b78e4f3-92db-4339-b9d0-87a3c96d3cac"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "6b78e4f3-92db-4339-b9d0-87a3c96d3cac"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "6b78e4f3-92db-4339-b9d0-87a3c96d3cac"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:08:00.577338"], ["updated_at", "2015-11-07 21:08:00.577338"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "904764c2-895d-47f5-bf93-310205d142a8"], ["created_at", "2015-11-07 21:08:00.581314"], ["updated_at", "2015-11-07 21:08:00.581314"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/e5d0f716-768e-4ef8-b5a4-4a0397b27ea8" for 127.0.0.1 at 2015-11-07 16:08:00 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"e5d0f716-768e-4ef8-b5a4-4a0397b27ea8", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"e5d0f716-768e-4ef8-b5a4-4a0397b27ea8"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e5d0f716-768e-4ef8-b5a4-4a0397b27ea8"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "904764c2-895d-47f5-bf93-310205d142a8"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'e5d0f716-768e-4ef8-b5a4-4a0397b27ea8') LIMIT 1 SQL (0.7ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-07 21:08:00.589203"], ["id", "e5d0f716-768e-4ef8-b5a4-4a0397b27ea8"]]  (0.3ms) COMMIT Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 2.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" ORDER BY "strain_articles"."id" ASC LIMIT 1 Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "e5d0f716-768e-4ef8-b5a4-4a0397b27ea8"]] Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "e5d0f716-768e-4ef8-b5a4-4a0397b27ea8"]]  (0.4ms) ROLLBACK SQL (3.4ms) DELETE FROM "strain_variants" SQL (0.7ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:09:31.813722"], ["updated_at", "2015-11-07 21:09:31.813722"]]  (3.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "dcf7e140-5f24-49d4-a693-15800d31d500"], ["created_at", "2015-11-07 21:09:31.832184"], ["updated_at", "2015-11-07 21:09:31.832184"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:09:31 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:09:31.877490"], ["updated_at", "2015-11-07 21:09:31.877490"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4d83e80b-89ce-43f2-8cf8-6c92d8d7f32a"], ["created_at", "2015-11-07 21:09:31.881601"], ["updated_at", "2015-11-07 21:09:31.881601"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/031d16e3-7bd2-4422-8aeb-2573bacc7ca8" for 127.0.0.1 at 2015-11-07 16:09:31 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"031d16e3-7bd2-4422-8aeb-2573bacc7ca8"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "031d16e3-7bd2-4422-8aeb-2573bacc7ca8"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4d83e80b-89ce-43f2-8cf8-6c92d8d7f32a"]] Completed 200 OK in 16ms (Views: 0.9ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:09:31.919923"], ["updated_at", "2015-11-07 21:09:31.919923"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 16:09:31 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"c022e96a-1da5-4bcc-983c-624ad8fe0d86"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c022e96a-1da5-4bcc-983c-624ad8fe0d86"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "c022e96a-1da5-4bcc-983c-624ad8fe0d86"], ["created_at", "2015-11-07 21:09:31.927550"], ["updated_at", "2015-11-07 21:09:31.927550"]]  (0.5ms) COMMIT Completed 201 Created in 8ms (Views: 0.9ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:09:31.944711"], ["updated_at", "2015-11-07 21:09:31.944711"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1f1695d0-8d5b-4983-bdc1-56160ea05fd6"], ["created_at", "2015-11-07 21:09:31.949275"], ["updated_at", "2015-11-07 21:09:31.949275"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/1b87fef3-263c-47ef-97c3-f217da91df33" for 127.0.0.1 at 2015-11-07 16:09:31 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"1b87fef3-263c-47ef-97c3-f217da91df33"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "1b87fef3-263c-47ef-97c3-f217da91df33"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "1b87fef3-263c-47ef-97c3-f217da91df33"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:09:31.969045"], ["updated_at", "2015-11-07 21:09:31.969045"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b9e33a23-65a2-4c5a-b61b-92ec01ef0715"], ["created_at", "2015-11-07 21:09:31.973097"], ["updated_at", "2015-11-07 21:09:31.973097"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/d34e4ade-75f2-49a4-a57e-1098fffd74b0" for 127.0.0.1 at 2015-11-07 16:09:31 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"d34e4ade-75f2-49a4-a57e-1098fffd74b0", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"d34e4ade-75f2-49a4-a57e-1098fffd74b0"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "d34e4ade-75f2-49a4-a57e-1098fffd74b0"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b9e33a23-65a2-4c5a-b61b-92ec01ef0715"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'd34e4ade-75f2-49a4-a57e-1098fffd74b0') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-07 21:09:31.981732"], ["id", "d34e4ade-75f2-49a4-a57e-1098fffd74b0"]]  (0.3ms) COMMIT Completed 200 OK in 10ms (Views: 0.8ms | ActiveRecord: 1.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "d34e4ade-75f2-49a4-a57e-1098fffd74b0"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:09:49.967770"], ["updated_at", "2015-11-07 21:09:49.967770"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f35bab70-177e-43e0-a10a-cbcf002f3f13"], ["created_at", "2015-11-07 21:09:49.981630"], ["updated_at", "2015-11-07 21:09:49.981630"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:09:49 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.3ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:09:50.023426"], ["updated_at", "2015-11-07 21:09:50.023426"]]  (0.6ms) COMMIT  (0.3ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e345ebbd-90bf-49f9-ac94-a0f9047727d7"], ["created_at", "2015-11-07 21:09:50.027792"], ["updated_at", "2015-11-07 21:09:50.027792"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/efd122d0-0a25-429f-98ba-50a534cea2ed" for 127.0.0.1 at 2015-11-07 16:09:50 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"efd122d0-0a25-429f-98ba-50a534cea2ed"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "efd122d0-0a25-429f-98ba-50a534cea2ed"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e345ebbd-90bf-49f9-ac94-a0f9047727d7"]] Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:09:50.064080"], ["updated_at", "2015-11-07 21:09:50.064080"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-07 16:09:50 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"cf935f32-4e0f-4d78-89a0-62c3f4e02442"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "cf935f32-4e0f-4d78-89a0-62c3f4e02442"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "cf935f32-4e0f-4d78-89a0-62c3f4e02442"], ["created_at", "2015-11-07 21:09:50.075733"], ["updated_at", "2015-11-07 21:09:50.075733"]]  (0.7ms) COMMIT Completed 201 Created in 11ms (Views: 1.0ms | ActiveRecord: 2.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:09:50.093789"], ["updated_at", "2015-11-07 21:09:50.093789"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fb6758f8-3aba-46e4-b9ab-cf2fa4a394eb"], ["created_at", "2015-11-07 21:09:50.097877"], ["updated_at", "2015-11-07 21:09:50.097877"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/04289289-0722-49f6-953d-917270e0c22d" for 127.0.0.1 at 2015-11-07 16:09:50 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"04289289-0722-49f6-953d-917270e0c22d"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "04289289-0722-49f6-953d-917270e0c22d"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "04289289-0722-49f6-953d-917270e0c22d"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:09:50.118074"], ["updated_at", "2015-11-07 21:09:50.118074"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a0fd3fe8-84c2-4b9f-8eb1-fc08306f479e"], ["created_at", "2015-11-07 21:09:50.122469"], ["updated_at", "2015-11-07 21:09:50.122469"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/acc8f6dc-bcde-4cc3-8b77-128cffbf678f" for 127.0.0.1 at 2015-11-07 16:09:50 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"acc8f6dc-bcde-4cc3-8b77-128cffbf678f", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"acc8f6dc-bcde-4cc3-8b77-128cffbf678f"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "acc8f6dc-bcde-4cc3-8b77-128cffbf678f"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a0fd3fe8-84c2-4b9f-8eb1-fc08306f479e"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'acc8f6dc-bcde-4cc3-8b77-128cffbf678f') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-07 21:09:50.130896"], ["id", "acc8f6dc-bcde-4cc3-8b77-128cffbf678f"]]  (0.6ms) COMMIT Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "acc8f6dc-bcde-4cc3-8b77-128cffbf678f"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:10:29.285421"], ["updated_at", "2015-11-07 21:10:29.285421"]]  (4.1ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:10:29 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:10:29.335148"], ["updated_at", "2015-11-07 21:10:29.335148"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/c07c5043-1c6c-4d3c-b06c-b2bb357736d7" for 127.0.0.1 at 2015-11-07 16:10:29 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"c07c5043-1c6c-4d3c-b06c-b2bb357736d7"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c07c5043-1c6c-4d3c-b06c-b2bb357736d7"]] Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 0.4ms)  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-07 16:10:29 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-07 21:10:29.368539"], ["updated_at", "2015-11-07 21:10:29.368539"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:10:29.382217"], ["updated_at", "2015-11-07 21:10:29.382217"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/723c6300-87fa-4f8b-8658-945e5dfd94c9" for 127.0.0.1 at 2015-11-07 16:10:29 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"723c6300-87fa-4f8b-8658-945e5dfd94c9"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "723c6300-87fa-4f8b-8658-945e5dfd94c9"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "723c6300-87fa-4f8b-8658-945e5dfd94c9"]]  (0.3ms) COMMIT Completed 204 No Content in 5ms (Views: 0.1ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-07 21:10:29.401244"], ["updated_at", "2015-11-07 21:10:29.401244"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/bc2d34ba-d278-40b2-be15-afffedd96e5f" for 127.0.0.1 at 2015-11-07 16:10:29 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"bc2d34ba-d278-40b2-be15-afffedd96e5f", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"bc2d34ba-d278-40b2-be15-afffedd96e5f"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "bc2d34ba-d278-40b2-be15-afffedd96e5f"]] Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'bc2d34ba-d278-40b2-be15-afffedd96e5f') LIMIT 1 SQL (0.7ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-07 21:10:29.414529"], ["id", "bc2d34ba-d278-40b2-be15-afffedd96e5f"]]  (0.5ms) COMMIT Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 2.7ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "bc2d34ba-d278-40b2-be15-afffedd96e5f"]]  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (21.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-08 00:18:40.518631"], ["updated_at", "2015-11-08 00:18:40.518631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-08 00:18:40.546103"], ["updated_at", "2015-11-08 00:18:40.546103"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-08 00:18:40.557621"], ["updated_at", "2015-11-08 00:18:40.557621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (7.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.6ms) BEGIN  (4.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (10.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (61.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:11:42.276776"], ["updated_at", "2015-11-09 04:11:42.276776"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:11:42.364444"], ["updated_at", "2015-11-09 04:11:42.364444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:11:42.384355"], ["updated_at", "2015-11-09 04:11:42.384355"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:11:42.402913"], ["updated_at", "2015-11-09 04:11:42.402913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:11:42.415444"], ["updated_at", "2015-11-09 04:11:42.415444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:11:42.431828"], ["updated_at", "2015-11-09 04:11:42.431828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "270b02c8-46b9-4555-80ba-f948d9120513"], ["created_at", "2015-11-09 04:11:42.435674"], ["updated_at", "2015-11-09 04:11:42.435674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "270b02c8-46b9-4555-80ba-f948d9120513"], ["created_at", "2015-11-09 04:11:42.442407"], ["updated_at", "2015-11-09 04:11:42.442407"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:11:42.455864"], ["updated_at", "2015-11-09 04:11:42.455864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "03e04f59-166a-4c05-bbe6-f370b23c83c8"], ["created_at", "2015-11-09 04:11:42.459485"], ["updated_at", "2015-11-09 04:11:42.459485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:12:12.757393"], ["updated_at", "2015-11-09 04:12:12.757393"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:12:12.781165"], ["updated_at", "2015-11-09 04:12:12.781165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:12:12.802800"], ["updated_at", "2015-11-09 04:12:12.802800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:12:12.818024"], ["updated_at", "2015-11-09 04:12:12.818024"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:12:12.835160"], ["updated_at", "2015-11-09 04:12:12.835160"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:12:12.848325"], ["updated_at", "2015-11-09 04:12:12.848325"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0ffffd09-282f-4578-bee9-9a62ce61640b"], ["created_at", "2015-11-09 04:12:12.854302"], ["updated_at", "2015-11-09 04:12:12.854302"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0ffffd09-282f-4578-bee9-9a62ce61640b"], ["created_at", "2015-11-09 04:12:12.861992"], ["updated_at", "2015-11-09 04:12:12.861992"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:12:12.874036"], ["updated_at", "2015-11-09 04:12:12.874036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1092573e-dfc2-4d8a-b70e-e65c9e77772f"], ["created_at", "2015-11-09 04:12:12.879419"], ["updated_at", "2015-11-09 04:12:12.879419"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:13:15.538301"], ["updated_at", "2015-11-09 04:13:15.538301"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:13:15.561334"], ["updated_at", "2015-11-09 04:13:15.561334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:13:15.583278"], ["updated_at", "2015-11-09 04:13:15.583278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:13:15.598475"], ["updated_at", "2015-11-09 04:13:15.598475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:13:15.612292"], ["updated_at", "2015-11-09 04:13:15.612292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:13:15.629315"], ["updated_at", "2015-11-09 04:13:15.629315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ad316090-527d-466e-b8f6-4e2301576cec"], ["created_at", "2015-11-09 04:13:15.633266"], ["updated_at", "2015-11-09 04:13:15.633266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ad316090-527d-466e-b8f6-4e2301576cec"], ["created_at", "2015-11-09 04:13:15.637888"], ["updated_at", "2015-11-09 04:13:15.637888"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:13:15.652800"], ["updated_at", "2015-11-09 04:13:15.652800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a7bfab0b-8bdc-45e4-946c-cf8aedf28e94"], ["created_at", "2015-11-09 04:13:15.656744"], ["updated_at", "2015-11-09 04:13:15.656744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:15:18.522833"], ["updated_at", "2015-11-09 04:15:18.522833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:15:18.546870"], ["updated_at", "2015-11-09 04:15:18.546870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:15:18.563449"], ["updated_at", "2015-11-09 04:15:18.563449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:15:18.582970"], ["updated_at", "2015-11-09 04:15:18.582970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:15:18.599534"], ["updated_at", "2015-11-09 04:15:18.599534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:15:18.611412"], ["updated_at", "2015-11-09 04:15:18.611412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8339e363-c9bb-4477-aca8-d6c18d394cbe"], ["created_at", "2015-11-09 04:15:18.616703"], ["updated_at", "2015-11-09 04:15:18.616703"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8339e363-c9bb-4477-aca8-d6c18d394cbe"], ["created_at", "2015-11-09 04:15:18.624108"], ["updated_at", "2015-11-09 04:15:18.624108"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}}}"], ["created_at", "2015-11-09 04:15:18.635039"], ["updated_at", "2015-11-09 04:15:18.635039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "08d24157-5340-46dc-b74f-32554cb2795c"], ["created_at", "2015-11-09 04:15:18.638521"], ["updated_at", "2015-11-09 04:15:18.638521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (5.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:16:50.426631"], ["updated_at", "2015-11-09 04:16:50.426631"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:16:50.452882"], ["updated_at", "2015-11-09 04:16:50.452882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:16:50.474452"], ["updated_at", "2015-11-09 04:16:50.474452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:16:50.493755"], ["updated_at", "2015-11-09 04:16:50.493755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:16:50.506994"], ["updated_at", "2015-11-09 04:16:50.506994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:16:50.519983"], ["updated_at", "2015-11-09 04:16:50.519983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "004e3493-fef8-4f85-8f9c-549603cbd27d"], ["created_at", "2015-11-09 04:16:50.523798"], ["updated_at", "2015-11-09 04:16:50.523798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "004e3493-fef8-4f85-8f9c-549603cbd27d"], ["created_at", "2015-11-09 04:16:50.528632"], ["updated_at", "2015-11-09 04:16:50.528632"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:16:50.542210"], ["updated_at", "2015-11-09 04:16:50.542210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ee074a1e-eb46-4d63-b072-6f5baef99d25"], ["created_at", "2015-11-09 04:16:50.546006"], ["updated_at", "2015-11-09 04:16:50.546006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.240413"], ["updated_at", "2015-11-09 04:18:24.240413"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.264080"], ["updated_at", "2015-11-09 04:18:24.264080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.286077"], ["updated_at", "2015-11-09 04:18:24.286077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.303103"], ["updated_at", "2015-11-09 04:18:24.303103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.314900"], ["updated_at", "2015-11-09 04:18:24.314900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.331551"], ["updated_at", "2015-11-09 04:18:24.331551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0a24022b-29d2-41e2-8bc0-374d73212d49"], ["created_at", "2015-11-09 04:18:24.335663"], ["updated_at", "2015-11-09 04:18:24.335663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0a24022b-29d2-41e2-8bc0-374d73212d49"], ["created_at", "2015-11-09 04:18:24.340383"], ["updated_at", "2015-11-09 04:18:24.340383"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.350671"], ["updated_at", "2015-11-09 04:18:24.350671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d5159326-f347-43ac-a8c5-df37a7855b8c"], ["created_at", "2015-11-09 04:18:24.354186"], ["updated_at", "2015-11-09 04:18:24.354186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.397003"], ["updated_at", "2015-11-09 04:18:24.397003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.399846"], ["updated_at", "2015-11-09 04:18:24.399846"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.409034"], ["updated_at", "2015-11-09 04:18:24.409034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.430826"], ["updated_at", "2015-11-09 04:18:24.430826"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a47d639a-f8a7-41bc-9875-a41c34758802"], ["created_at", "2015-11-09 04:18:24.438736"], ["updated_at", "2015-11-09 04:18:24.438736"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-08 23:18:24 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (3.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 3.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.499804"], ["updated_at", "2015-11-09 04:18:24.499804"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "798c16f5-5d82-433c-8031-4a9aaf87d055"], ["created_at", "2015-11-09 04:18:24.506457"], ["updated_at", "2015-11-09 04:18:24.506457"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/ac507aa2-2803-4430-a8c1-d0c7670266d7" for 127.0.0.1 at 2015-11-08 23:18:24 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"ac507aa2-2803-4430-a8c1-d0c7670266d7"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ac507aa2-2803-4430-a8c1-d0c7670266d7"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "798c16f5-5d82-433c-8031-4a9aaf87d055"]] Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.549033"], ["updated_at", "2015-11-09 04:18:24.549033"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-08 23:18:24 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"4ac858e7-469e-4514-bfc9-995362dded7c"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4ac858e7-469e-4514-bfc9-995362dded7c"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("slug", "title", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["slug", "test"], ["title", "test"], ["body", "{\"beep\":\"quack\"}"], ["variant_id", "4ac858e7-469e-4514-bfc9-995362dded7c"], ["created_at", "2015-11-09 04:18:24.560910"], ["updated_at", "2015-11-09 04:18:24.560910"]]  (0.6ms) COMMIT Completed 201 Created in 11ms (Views: 0.8ms | ActiveRecord: 2.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.579053"], ["updated_at", "2015-11-09 04:18:24.579053"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5e73a8f7-ba57-49ac-a49d-6f0c02484076"], ["created_at", "2015-11-09 04:18:24.583278"], ["updated_at", "2015-11-09 04:18:24.583278"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/75aa21cc-8866-4cd1-ad54-3c2971ae3beb" for 127.0.0.1 at 2015-11-08 23:18:24 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"75aa21cc-8866-4cd1-ad54-3c2971ae3beb"}  (0.1ms) BEGIN Strain::Article Load (0.8ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "75aa21cc-8866-4cd1-ad54-3c2971ae3beb"]] SQL (0.5ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "75aa21cc-8866-4cd1-ad54-3c2971ae3beb"]]  (0.4ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.603935"], ["updated_at", "2015-11-09 04:18:24.603935"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6f628443-d831-4175-a520-865492ca0dde"], ["created_at", "2015-11-09 04:18:24.609874"], ["updated_at", "2015-11-09 04:18:24.609874"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/95a99d5a-6da1-4178-a5d0-823a124ac42f" for 127.0.0.1 at 2015-11-08 23:18:24 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"95a99d5a-6da1-4178-a5d0-823a124ac42f", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"95a99d5a-6da1-4178-a5d0-823a124ac42f"}  (0.1ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "95a99d5a-6da1-4178-a5d0-823a124ac42f"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6f628443-d831-4175-a520-865492ca0dde"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '95a99d5a-6da1-4178-a5d0-823a124ac42f') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-09 04:18:24.620438"], ["id", "95a99d5a-6da1-4178-a5d0-823a124ac42f"]]  (0.3ms) COMMIT Completed 200 OK in 11ms (Views: 0.8ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.6ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "95a99d5a-6da1-4178-a5d0-823a124ac42f"]]  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.640700"], ["updated_at", "2015-11-09 04:18:24.640700"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-08 23:18:24 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.4ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.665167"], ["updated_at", "2015-11-09 04:18:24.665167"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/0d1377c4-838e-41c0-a8f6-a41a02310e00" for 127.0.0.1 at 2015-11-08 23:18:24 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"0d1377c4-838e-41c0-a8f6-a41a02310e00"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "0d1377c4-838e-41c0-a8f6-a41a02310e00"]] Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-08 23:18:24 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-09 04:18:24.692658"], ["updated_at", "2015-11-09 04:18:24.692658"]]  (0.4ms) COMMIT Completed 201 Created in 11ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.706963"], ["updated_at", "2015-11-09 04:18:24.706963"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/c9de15cf-5e81-41c9-a8ef-1a9e761f13ca" for 127.0.0.1 at 2015-11-08 23:18:24 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"c9de15cf-5e81-41c9-a8ef-1a9e761f13ca"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c9de15cf-5e81-41c9-a8ef-1a9e761f13ca"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "c9de15cf-5e81-41c9-a8ef-1a9e761f13ca"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:18:24.724834"], ["updated_at", "2015-11-09 04:18:24.724834"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/b8035808-8d1e-42f3-b473-4e0fcbba1c6a" for 127.0.0.1 at 2015-11-08 23:18:24 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"b8035808-8d1e-42f3-b473-4e0fcbba1c6a", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"b8035808-8d1e-42f3-b473-4e0fcbba1c6a"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b8035808-8d1e-42f3-b473-4e0fcbba1c6a"]] Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'b8035808-8d1e-42f3-b473-4e0fcbba1c6a') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-09 04:18:24.736970"], ["id", "b8035808-8d1e-42f3-b473-4e0fcbba1c6a"]]  (0.4ms) COMMIT Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b8035808-8d1e-42f3-b473-4e0fcbba1c6a"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:06.436418"], ["updated_at", "2015-11-09 04:19:06.436418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:06.456340"], ["updated_at", "2015-11-09 04:19:06.456340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:06.479178"], ["updated_at", "2015-11-09 04:19:06.479178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:06.495148"], ["updated_at", "2015-11-09 04:19:06.495148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:06.508189"], ["updated_at", "2015-11-09 04:19:06.508189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:06.524865"], ["updated_at", "2015-11-09 04:19:06.524865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "076aeccb-fca4-4e36-9711-3b4132ee3e72"], ["created_at", "2015-11-09 04:19:06.528940"], ["updated_at", "2015-11-09 04:19:06.528940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "076aeccb-fca4-4e36-9711-3b4132ee3e72"], ["created_at", "2015-11-09 04:19:06.533726"], ["updated_at", "2015-11-09 04:19:06.533726"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:06.544802"], ["updated_at", "2015-11-09 04:19:06.544802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8dbe44f9-6900-459b-b121-f8f630511836"], ["created_at", "2015-11-09 04:19:06.550763"], ["updated_at", "2015-11-09 04:19:06.550763"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:36.000573"], ["updated_at", "2015-11-09 04:19:36.000573"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:36.025048"], ["updated_at", "2015-11-09 04:19:36.025048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:36.047082"], ["updated_at", "2015-11-09 04:19:36.047082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:36.063829"], ["updated_at", "2015-11-09 04:19:36.063829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:36.077019"], ["updated_at", "2015-11-09 04:19:36.077019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:36.089367"], ["updated_at", "2015-11-09 04:19:36.089367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e587a2f9-55bc-4382-9540-6569295db7d0"], ["created_at", "2015-11-09 04:19:36.093345"], ["updated_at", "2015-11-09 04:19:36.093345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e587a2f9-55bc-4382-9540-6569295db7d0"], ["created_at", "2015-11-09 04:19:36.098304"], ["updated_at", "2015-11-09 04:19:36.098304"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:19:36.109494"], ["updated_at", "2015-11-09 04:19:36.109494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "dc19c1a1-42c1-48f1-8094-30914dca333a"], ["created_at", "2015-11-09 04:19:36.113100"], ["updated_at", "2015-11-09 04:19:36.113100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (2.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:43:53.332806"], ["updated_at", "2015-11-09 04:43:53.332806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.2ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:43:53.357910"], ["updated_at", "2015-11-09 04:43:53.357910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:43:53.380584"], ["updated_at", "2015-11-09 04:43:53.380584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:43:53.401323"], ["updated_at", "2015-11-09 04:43:53.401323"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:43:53.414761"], ["updated_at", "2015-11-09 04:43:53.414761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:43:53.431926"], ["updated_at", "2015-11-09 04:43:53.431926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5bc8e790-5287-4074-a2b8-09a4e64790e6"], ["created_at", "2015-11-09 04:43:53.436698"], ["updated_at", "2015-11-09 04:43:53.436698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5bc8e790-5287-4074-a2b8-09a4e64790e6"], ["created_at", "2015-11-09 04:43:53.442144"], ["updated_at", "2015-11-09 04:43:53.442144"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:43:53.452967"], ["updated_at", "2015-11-09 04:43:53.452967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b170a3fe-ed90-4fba-be57-8f41cb9f030d"], ["created_at", "2015-11-09 04:43:53.456618"], ["updated_at", "2015-11-09 04:43:53.456618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:43:53.468123"], ["updated_at", "2015-11-09 04:43:53.468123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:44:33.027909"], ["updated_at", "2015-11-09 04:44:33.027909"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:44:33.052579"], ["updated_at", "2015-11-09 04:44:33.052579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:44:33.074952"], ["updated_at", "2015-11-09 04:44:33.074952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:44:33.090561"], ["updated_at", "2015-11-09 04:44:33.090561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:44:33.104353"], ["updated_at", "2015-11-09 04:44:33.104353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:44:33.116735"], ["updated_at", "2015-11-09 04:44:33.116735"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "efb03322-5d8e-4bd9-8ea8-b5d005d348bc"], ["created_at", "2015-11-09 04:44:33.123660"], ["updated_at", "2015-11-09 04:44:33.123660"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "efb03322-5d8e-4bd9-8ea8-b5d005d348bc"], ["created_at", "2015-11-09 04:44:33.129933"], ["updated_at", "2015-11-09 04:44:33.129933"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:44:33.142820"], ["updated_at", "2015-11-09 04:44:33.142820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ff8c3b0e-5649-4522-bfea-7139d20a226c"], ["created_at", "2015-11-09 04:44:33.146546"], ["updated_at", "2015-11-09 04:44:33.146546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:44:33.158979"], ["updated_at", "2015-11-09 04:44:33.158979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:04.440879"], ["updated_at", "2015-11-09 04:45:04.440879"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:04.463907"], ["updated_at", "2015-11-09 04:45:04.463907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:04.485892"], ["updated_at", "2015-11-09 04:45:04.485892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:04.501781"], ["updated_at", "2015-11-09 04:45:04.501781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:04.519879"], ["updated_at", "2015-11-09 04:45:04.519879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:04.533042"], ["updated_at", "2015-11-09 04:45:04.533042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "44a9314f-5dc8-4dce-b22c-5984a52672e8"], ["created_at", "2015-11-09 04:45:04.537424"], ["updated_at", "2015-11-09 04:45:04.537424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "44a9314f-5dc8-4dce-b22c-5984a52672e8"], ["created_at", "2015-11-09 04:45:04.542215"], ["updated_at", "2015-11-09 04:45:04.542215"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:04.553022"], ["updated_at", "2015-11-09 04:45:04.553022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9fdd2917-38f5-48b3-90a8-a47ef3c7b03c"], ["created_at", "2015-11-09 04:45:04.557060"], ["updated_at", "2015-11-09 04:45:04.557060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:04.569590"], ["updated_at", "2015-11-09 04:45:04.569590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:04.582320"], ["updated_at", "2015-11-09 04:45:04.582320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:17.058338"], ["updated_at", "2015-11-09 04:45:17.058338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:17.081433"], ["updated_at", "2015-11-09 04:45:17.081433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:17.101074"], ["updated_at", "2015-11-09 04:45:17.101074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:17.119100"], ["updated_at", "2015-11-09 04:45:17.119100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:17.131194"], ["updated_at", "2015-11-09 04:45:17.131194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:17.143773"], ["updated_at", "2015-11-09 04:45:17.143773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6cc794e5-3961-40e8-8a2c-9ed7764e33c1"], ["created_at", "2015-11-09 04:45:17.148009"], ["updated_at", "2015-11-09 04:45:17.148009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6cc794e5-3961-40e8-8a2c-9ed7764e33c1"], ["created_at", "2015-11-09 04:45:17.152609"], ["updated_at", "2015-11-09 04:45:17.152609"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:17.162347"], ["updated_at", "2015-11-09 04:45:17.162347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8521df49-4b7d-4fc1-b92f-68141849d7b6"], ["created_at", "2015-11-09 04:45:17.166227"], ["updated_at", "2015-11-09 04:45:17.166227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:17.177723"], ["updated_at", "2015-11-09 04:45:17.177723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:45:17.194082"], ["updated_at", "2015-11-09 04:45:17.194082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:00.480482"], ["updated_at", "2015-11-09 04:49:00.480482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:00.505098"], ["updated_at", "2015-11-09 04:49:00.505098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:00.529125"], ["updated_at", "2015-11-09 04:49:00.529125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:00.548880"], ["updated_at", "2015-11-09 04:49:00.548880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:00.563410"], ["updated_at", "2015-11-09 04:49:00.563410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:00.577874"], ["updated_at", "2015-11-09 04:49:00.577874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7b93649a-759a-41da-9491-e57b2c4ae6f2"], ["created_at", "2015-11-09 04:49:00.583321"], ["updated_at", "2015-11-09 04:49:00.583321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7b93649a-759a-41da-9491-e57b2c4ae6f2"], ["created_at", "2015-11-09 04:49:00.588329"], ["updated_at", "2015-11-09 04:49:00.588329"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:00.603520"], ["updated_at", "2015-11-09 04:49:00.603520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ff18da96-5978-4dad-a646-b73a3305dc2f"], ["created_at", "2015-11-09 04:49:00.608641"], ["updated_at", "2015-11-09 04:49:00.608641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:00.622015"], ["updated_at", "2015-11-09 04:49:00.622015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:00.635614"], ["updated_at", "2015-11-09 04:49:00.635614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:40.606602"], ["updated_at", "2015-11-09 04:49:40.606602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:40.631478"], ["updated_at", "2015-11-09 04:49:40.631478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:40.654853"], ["updated_at", "2015-11-09 04:49:40.654853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:40.672841"], ["updated_at", "2015-11-09 04:49:40.672841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:40.686388"], ["updated_at", "2015-11-09 04:49:40.686388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:40.705226"], ["updated_at", "2015-11-09 04:49:40.705226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ae2d9846-d8d6-4c87-ba4e-5279d9c0f2a2"], ["created_at", "2015-11-09 04:49:40.710624"], ["updated_at", "2015-11-09 04:49:40.710624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ae2d9846-d8d6-4c87-ba4e-5279d9c0f2a2"], ["created_at", "2015-11-09 04:49:40.715062"], ["updated_at", "2015-11-09 04:49:40.715062"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:40.726868"], ["updated_at", "2015-11-09 04:49:40.726868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7ef3002c-4b47-436c-8647-19e73983f2e0"], ["created_at", "2015-11-09 04:49:40.731465"], ["updated_at", "2015-11-09 04:49:40.731465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:40.748679"], ["updated_at", "2015-11-09 04:49:40.748679"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:40.762266"], ["updated_at", "2015-11-09 04:49:40.762266"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:57.360604"], ["updated_at", "2015-11-09 04:49:57.360604"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:57.385664"], ["updated_at", "2015-11-09 04:49:57.385664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:57.403944"], ["updated_at", "2015-11-09 04:49:57.403944"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:57.428619"], ["updated_at", "2015-11-09 04:49:57.428619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:57.441845"], ["updated_at", "2015-11-09 04:49:57.441845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:57.456556"], ["updated_at", "2015-11-09 04:49:57.456556"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e35c6c61-3849-42c9-93b3-a13e0f9a5a0a"], ["created_at", "2015-11-09 04:49:57.464492"], ["updated_at", "2015-11-09 04:49:57.464492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e35c6c61-3849-42c9-93b3-a13e0f9a5a0a"], ["created_at", "2015-11-09 04:49:57.469716"], ["updated_at", "2015-11-09 04:49:57.469716"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:57.480074"], ["updated_at", "2015-11-09 04:49:57.480074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8925c673-8416-41f6-b393-e6413ab3cd2c"], ["created_at", "2015-11-09 04:49:57.486486"], ["updated_at", "2015-11-09 04:49:57.486486"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:57.502258"], ["updated_at", "2015-11-09 04:49:57.502258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:49:57.515106"], ["updated_at", "2015-11-09 04:49:57.515106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:07.105839"], ["updated_at", "2015-11-09 04:51:07.105839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:07.132837"], ["updated_at", "2015-11-09 04:51:07.132837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:07.155594"], ["updated_at", "2015-11-09 04:51:07.155594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:07.178712"], ["updated_at", "2015-11-09 04:51:07.178712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:07.197552"], ["updated_at", "2015-11-09 04:51:07.197552"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:07.210702"], ["updated_at", "2015-11-09 04:51:07.210702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ca46621c-755d-4caa-ac7c-29aac107c291"], ["created_at", "2015-11-09 04:51:07.215748"], ["updated_at", "2015-11-09 04:51:07.215748"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ca46621c-755d-4caa-ac7c-29aac107c291"], ["created_at", "2015-11-09 04:51:07.223594"], ["updated_at", "2015-11-09 04:51:07.223594"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:07.234723"], ["updated_at", "2015-11-09 04:51:07.234723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7d7dd814-17e2-49d9-adf7-55765ae369b8"], ["created_at", "2015-11-09 04:51:07.240867"], ["updated_at", "2015-11-09 04:51:07.240867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:07.258869"], ["updated_at", "2015-11-09 04:51:07.258869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:07.271153"], ["updated_at", "2015-11-09 04:51:07.271153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:22.114570"], ["updated_at", "2015-11-09 04:51:22.114570"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:22.139539"], ["updated_at", "2015-11-09 04:51:22.139539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:22.162706"], ["updated_at", "2015-11-09 04:51:22.162706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:22.179499"], ["updated_at", "2015-11-09 04:51:22.179499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:22.193095"], ["updated_at", "2015-11-09 04:51:22.193095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:22.207453"], ["updated_at", "2015-11-09 04:51:22.207453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6cbebd9d-ad15-46f8-a47c-89dc5193b494"], ["created_at", "2015-11-09 04:51:22.212311"], ["updated_at", "2015-11-09 04:51:22.212311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6cbebd9d-ad15-46f8-a47c-89dc5193b494"], ["created_at", "2015-11-09 04:51:22.217152"], ["updated_at", "2015-11-09 04:51:22.217152"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:22.228172"], ["updated_at", "2015-11-09 04:51:22.228172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4abde6a6-90b4-4d97-a5e8-e5b1ea978a2f"], ["created_at", "2015-11-09 04:51:22.232804"], ["updated_at", "2015-11-09 04:51:22.232804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:22.250242"], ["updated_at", "2015-11-09 04:51:22.250242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:22.263410"], ["updated_at", "2015-11-09 04:51:22.263410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:43.943718"], ["updated_at", "2015-11-09 04:51:43.943718"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:43.969063"], ["updated_at", "2015-11-09 04:51:43.969063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:43.991370"], ["updated_at", "2015-11-09 04:51:43.991370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:44.008078"], ["updated_at", "2015-11-09 04:51:44.008078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:44.021173"], ["updated_at", "2015-11-09 04:51:44.021173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:44.037310"], ["updated_at", "2015-11-09 04:51:44.037310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "dbca4902-28ae-4df2-8d8c-0631566af90b"], ["created_at", "2015-11-09 04:51:44.043203"], ["updated_at", "2015-11-09 04:51:44.043203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "dbca4902-28ae-4df2-8d8c-0631566af90b"], ["created_at", "2015-11-09 04:51:44.047799"], ["updated_at", "2015-11-09 04:51:44.047799"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:44.057709"], ["updated_at", "2015-11-09 04:51:44.057709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5bfc5cb0-657a-4cba-b46f-9c76cd426536"], ["created_at", "2015-11-09 04:51:44.065373"], ["updated_at", "2015-11-09 04:51:44.065373"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:44.080147"], ["updated_at", "2015-11-09 04:51:44.080147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:44.096109"], ["updated_at", "2015-11-09 04:51:44.096109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:54.064480"], ["updated_at", "2015-11-09 04:51:54.064480"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:54.088835"], ["updated_at", "2015-11-09 04:51:54.088835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:54.111301"], ["updated_at", "2015-11-09 04:51:54.111301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:54.133324"], ["updated_at", "2015-11-09 04:51:54.133324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:54.147661"], ["updated_at", "2015-11-09 04:51:54.147661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:54.165987"], ["updated_at", "2015-11-09 04:51:54.165987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e3590a96-5f7a-44f4-a828-9abf4123e9ed"], ["created_at", "2015-11-09 04:51:54.171504"], ["updated_at", "2015-11-09 04:51:54.171504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e3590a96-5f7a-44f4-a828-9abf4123e9ed"], ["created_at", "2015-11-09 04:51:54.176600"], ["updated_at", "2015-11-09 04:51:54.176600"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:54.186358"], ["updated_at", "2015-11-09 04:51:54.186358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1682c023-96d8-412d-b5e5-5b09aaaac669"], ["created_at", "2015-11-09 04:51:54.192878"], ["updated_at", "2015-11-09 04:51:54.192878"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:54.208389"], ["updated_at", "2015-11-09 04:51:54.208389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:51:54.220950"], ["updated_at", "2015-11-09 04:51:54.220950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:32.139684"], ["updated_at", "2015-11-09 04:53:32.139684"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:32.164644"], ["updated_at", "2015-11-09 04:53:32.164644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:32.187123"], ["updated_at", "2015-11-09 04:53:32.187123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:32.211610"], ["updated_at", "2015-11-09 04:53:32.211610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:32.229381"], ["updated_at", "2015-11-09 04:53:32.229381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:32.248260"], ["updated_at", "2015-11-09 04:53:32.248260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:32.266991"], ["updated_at", "2015-11-09 04:53:32.266991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:32.279687"], ["updated_at", "2015-11-09 04:53:32.279687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:32.297849"], ["updated_at", "2015-11-09 04:53:32.297849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:46.143948"], ["updated_at", "2015-11-09 04:53:46.143948"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:46.170337"], ["updated_at", "2015-11-09 04:53:46.170337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:46.194358"], ["updated_at", "2015-11-09 04:53:46.194358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:46.215858"], ["updated_at", "2015-11-09 04:53:46.215858"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:46.229933"], ["updated_at", "2015-11-09 04:53:46.229933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:46.247803"], ["updated_at", "2015-11-09 04:53:46.247803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "812d298e-3dc5-44dd-9876-e8b428e590a2"], ["created_at", "2015-11-09 04:53:46.252813"], ["updated_at", "2015-11-09 04:53:46.252813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "812d298e-3dc5-44dd-9876-e8b428e590a2"], ["created_at", "2015-11-09 04:53:46.257708"], ["updated_at", "2015-11-09 04:53:46.257708"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:46.270462"], ["updated_at", "2015-11-09 04:53:46.270462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "98a5e1d0-254a-4932-845f-e20d34de7692"], ["created_at", "2015-11-09 04:53:46.275226"], ["updated_at", "2015-11-09 04:53:46.275226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:46.287954"], ["updated_at", "2015-11-09 04:53:46.287954"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:53:46.303264"], ["updated_at", "2015-11-09 04:53:46.303264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:00.398931"], ["updated_at", "2015-11-09 04:54:00.398931"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:00.423549"], ["updated_at", "2015-11-09 04:54:00.423549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:00.442662"], ["updated_at", "2015-11-09 04:54:00.442662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:00.462261"], ["updated_at", "2015-11-09 04:54:00.462261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:00.476438"], ["updated_at", "2015-11-09 04:54:00.476438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:00.494672"], ["updated_at", "2015-11-09 04:54:00.494672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ad771ec7-a3d7-4044-b2b2-a6ff40528f93"], ["created_at", "2015-11-09 04:54:00.499438"], ["updated_at", "2015-11-09 04:54:00.499438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ad771ec7-a3d7-4044-b2b2-a6ff40528f93"], ["created_at", "2015-11-09 04:54:00.503835"], ["updated_at", "2015-11-09 04:54:00.503835"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:00.519560"], ["updated_at", "2015-11-09 04:54:00.519560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a8d3a0f5-27d6-42e5-b026-bff7a7c58c0b"], ["created_at", "2015-11-09 04:54:00.524297"], ["updated_at", "2015-11-09 04:54:00.524297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:00.541037"], ["updated_at", "2015-11-09 04:54:00.541037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:00.553500"], ["updated_at", "2015-11-09 04:54:00.553500"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:07.665394"], ["updated_at", "2015-11-09 04:54:07.665394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:07.691720"], ["updated_at", "2015-11-09 04:54:07.691720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:07.710645"], ["updated_at", "2015-11-09 04:54:07.710645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:07.729220"], ["updated_at", "2015-11-09 04:54:07.729220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:07.747815"], ["updated_at", "2015-11-09 04:54:07.747815"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:07.762116"], ["updated_at", "2015-11-09 04:54:07.762116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "12aae7e7-5470-4900-b51b-af1b5476ee68"], ["created_at", "2015-11-09 04:54:07.767843"], ["updated_at", "2015-11-09 04:54:07.767843"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "12aae7e7-5470-4900-b51b-af1b5476ee68"], ["created_at", "2015-11-09 04:54:07.774298"], ["updated_at", "2015-11-09 04:54:07.774298"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:07.785337"], ["updated_at", "2015-11-09 04:54:07.785337"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5f769e43-1962-4dfc-8c9c-b3d816a6c400"], ["created_at", "2015-11-09 04:54:07.793181"], ["updated_at", "2015-11-09 04:54:07.793181"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:07.808123"], ["updated_at", "2015-11-09 04:54:07.808123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:07.825681"], ["updated_at", "2015-11-09 04:54:07.825681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:44.563344"], ["updated_at", "2015-11-09 04:54:44.563344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:44.585796"], ["updated_at", "2015-11-09 04:54:44.585796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:44.606105"], ["updated_at", "2015-11-09 04:54:44.606105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:44.623178"], ["updated_at", "2015-11-09 04:54:44.623178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:44.638915"], ["updated_at", "2015-11-09 04:54:44.638915"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:44.655797"], ["updated_at", "2015-11-09 04:54:44.655797"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f68aad1b-512c-4467-aa9e-fd153190095b"], ["created_at", "2015-11-09 04:54:44.661342"], ["updated_at", "2015-11-09 04:54:44.661342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f68aad1b-512c-4467-aa9e-fd153190095b"], ["created_at", "2015-11-09 04:54:44.666488"], ["updated_at", "2015-11-09 04:54:44.666488"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:44.678005"], ["updated_at", "2015-11-09 04:54:44.678005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c1e804b6-243c-48d8-b5f2-7ea032e739f5"], ["created_at", "2015-11-09 04:54:44.683301"], ["updated_at", "2015-11-09 04:54:44.683301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:44.699467"], ["updated_at", "2015-11-09 04:54:44.699467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:54:44.712733"], ["updated_at", "2015-11-09 04:54:44.712733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:29.275462"], ["updated_at", "2015-11-09 04:55:29.275462"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:29.301267"], ["updated_at", "2015-11-09 04:55:29.301267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:29.326148"], ["updated_at", "2015-11-09 04:55:29.326148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:29.343835"], ["updated_at", "2015-11-09 04:55:29.343835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:29.358425"], ["updated_at", "2015-11-09 04:55:29.358425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:29.374347"], ["updated_at", "2015-11-09 04:55:29.374347"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "12c13a1d-2e63-46a7-9ddb-d902df5d30f3"], ["created_at", "2015-11-09 04:55:29.381031"], ["updated_at", "2015-11-09 04:55:29.381031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "12c13a1d-2e63-46a7-9ddb-d902df5d30f3"], ["created_at", "2015-11-09 04:55:29.385872"], ["updated_at", "2015-11-09 04:55:29.385872"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:29.401948"], ["updated_at", "2015-11-09 04:55:29.401948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "82658ff9-a231-427f-92bb-c87c335d5564"], ["created_at", "2015-11-09 04:55:29.406994"], ["updated_at", "2015-11-09 04:55:29.406994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:29.422283"], ["updated_at", "2015-11-09 04:55:29.422283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:29.438929"], ["updated_at", "2015-11-09 04:55:29.438929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:55.623166"], ["updated_at", "2015-11-09 04:55:55.623166"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:55.647878"], ["updated_at", "2015-11-09 04:55:55.647878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:55.671336"], ["updated_at", "2015-11-09 04:55:55.671336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:55.688833"], ["updated_at", "2015-11-09 04:55:55.688833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:55.705697"], ["updated_at", "2015-11-09 04:55:55.705697"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:55.723988"], ["updated_at", "2015-11-09 04:55:55.723988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "851a9c5b-dcd8-4ba0-b5f5-9e0b728836c1"], ["created_at", "2015-11-09 04:55:55.728894"], ["updated_at", "2015-11-09 04:55:55.728894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "851a9c5b-dcd8-4ba0-b5f5-9e0b728836c1"], ["created_at", "2015-11-09 04:55:55.733351"], ["updated_at", "2015-11-09 04:55:55.733351"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:55.743818"], ["updated_at", "2015-11-09 04:55:55.743818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fbe8fbfe-acfe-4568-9d4c-7c1cecc5e357"], ["created_at", "2015-11-09 04:55:55.751405"], ["updated_at", "2015-11-09 04:55:55.751405"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:55.768475"], ["updated_at", "2015-11-09 04:55:55.768475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:55:55.781437"], ["updated_at", "2015-11-09 04:55:55.781437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:56:51.663741"], ["updated_at", "2015-11-09 04:56:51.663741"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:56:51.690847"], ["updated_at", "2015-11-09 04:56:51.690847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:56:51.709239"], ["updated_at", "2015-11-09 04:56:51.709239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:56:51.730808"], ["updated_at", "2015-11-09 04:56:51.730808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:56:51.743647"], ["updated_at", "2015-11-09 04:56:51.743647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:56:51.760271"], ["updated_at", "2015-11-09 04:56:51.760271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cb8b678a-3de6-4ef0-a40b-9ae771f5fb1e"], ["created_at", "2015-11-09 04:56:51.765154"], ["updated_at", "2015-11-09 04:56:51.765154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cb8b678a-3de6-4ef0-a40b-9ae771f5fb1e"], ["created_at", "2015-11-09 04:56:51.769934"], ["updated_at", "2015-11-09 04:56:51.769934"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:56:51.779805"], ["updated_at", "2015-11-09 04:56:51.779805"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "364fbb18-ba8a-4418-a686-f5f1a7096467"], ["created_at", "2015-11-09 04:56:51.785967"], ["updated_at", "2015-11-09 04:56:51.785967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:56:51.803534"], ["updated_at", "2015-11-09 04:56:51.803534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 04:56:51.818564"], ["updated_at", "2015-11-09 04:56:51.818564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (2.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (28.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:32:13.665187"], ["updated_at", "2015-11-09 10:32:13.665187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.2ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:32:13.716578"], ["updated_at", "2015-11-09 10:32:13.716578"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:32:13.742787"], ["updated_at", "2015-11-09 10:32:13.742787"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:32:13.765684"], ["updated_at", "2015-11-09 10:32:13.765684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:32:13.783948"], ["updated_at", "2015-11-09 10:32:13.783948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:32:13.803487"], ["updated_at", "2015-11-09 10:32:13.803487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d3c2ea1b-05a5-4c3e-b1da-6cae91e0566a"], ["created_at", "2015-11-09 10:32:13.808660"], ["updated_at", "2015-11-09 10:32:13.808660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d3c2ea1b-05a5-4c3e-b1da-6cae91e0566a"], ["created_at", "2015-11-09 10:32:13.814139"], ["updated_at", "2015-11-09 10:32:13.814139"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:32:13.827857"], ["updated_at", "2015-11-09 10:32:13.827857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e5ea7bbb-e3ac-4706-bd1c-842057bde04b"], ["created_at", "2015-11-09 10:32:13.832912"], ["updated_at", "2015-11-09 10:32:13.832912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:32:13.846998"], ["updated_at", "2015-11-09 10:32:13.846998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:32:13.861879"], ["updated_at", "2015-11-09 10:32:13.861879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:38:11.168971"], ["updated_at", "2015-11-09 10:38:11.168971"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:38:11.195378"], ["updated_at", "2015-11-09 10:38:11.195378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:38:11.219320"], ["updated_at", "2015-11-09 10:38:11.219320"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:38:11.237496"], ["updated_at", "2015-11-09 10:38:11.237496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:38:11.253472"], ["updated_at", "2015-11-09 10:38:11.253472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:38:11.271783"], ["updated_at", "2015-11-09 10:38:11.271783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ef5a5051-c47e-440d-abbb-a46bf2f5b503"], ["created_at", "2015-11-09 10:38:11.276937"], ["updated_at", "2015-11-09 10:38:11.276937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ef5a5051-c47e-440d-abbb-a46bf2f5b503"], ["created_at", "2015-11-09 10:38:11.282146"], ["updated_at", "2015-11-09 10:38:11.282146"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:38:11.292306"], ["updated_at", "2015-11-09 10:38:11.292306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "749cb23a-9d81-48b5-950a-6ea422dbde08"], ["created_at", "2015-11-09 10:38:11.296897"], ["updated_at", "2015-11-09 10:38:11.296897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:38:11.314788"], ["updated_at", "2015-11-09 10:38:11.314788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:38:11.332323"], ["updated_at", "2015-11-09 10:38:11.332323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:38:11.350683"], ["updated_at", "2015-11-09 10:38:11.350683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (6.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:18.239104"], ["updated_at", "2015-11-09 10:48:18.239104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:18.270084"], ["updated_at", "2015-11-09 10:48:18.270084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:18.299642"], ["updated_at", "2015-11-09 10:48:18.299642"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:18.321899"], ["updated_at", "2015-11-09 10:48:18.321899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:18.335812"], ["updated_at", "2015-11-09 10:48:18.335812"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:18.355727"], ["updated_at", "2015-11-09 10:48:18.355727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d7d71b10-8601-46fa-ac9e-6861cd76d8d3"], ["created_at", "2015-11-09 10:48:18.361284"], ["updated_at", "2015-11-09 10:48:18.361284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d7d71b10-8601-46fa-ac9e-6861cd76d8d3"], ["created_at", "2015-11-09 10:48:18.366825"], ["updated_at", "2015-11-09 10:48:18.366825"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:18.380612"], ["updated_at", "2015-11-09 10:48:18.380612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e9f4be67-5064-487f-b1c0-af1c2ced7455"], ["created_at", "2015-11-09 10:48:18.385685"], ["updated_at", "2015-11-09 10:48:18.385685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:18.406480"], ["updated_at", "2015-11-09 10:48:18.406480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:18.424510"], ["updated_at", "2015-11-09 10:48:18.424510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:18.443854"], ["updated_at", "2015-11-09 10:48:18.443854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:26.741870"], ["updated_at", "2015-11-09 10:48:26.741870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:26.762765"], ["updated_at", "2015-11-09 10:48:26.762765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:26.790426"], ["updated_at", "2015-11-09 10:48:26.790426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:26.808494"], ["updated_at", "2015-11-09 10:48:26.808494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:26.827567"], ["updated_at", "2015-11-09 10:48:26.827567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:26.840863"], ["updated_at", "2015-11-09 10:48:26.840863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b01d41f7-1c33-4cf6-9a80-2cedc8c66274"], ["created_at", "2015-11-09 10:48:26.846026"], ["updated_at", "2015-11-09 10:48:26.846026"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b01d41f7-1c33-4cf6-9a80-2cedc8c66274"], ["created_at", "2015-11-09 10:48:26.851907"], ["updated_at", "2015-11-09 10:48:26.851907"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:26.862349"], ["updated_at", "2015-11-09 10:48:26.862349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5e69bc05-326b-4733-89c1-992c85735ba5"], ["created_at", "2015-11-09 10:48:26.867033"], ["updated_at", "2015-11-09 10:48:26.867033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:26.881050"], ["updated_at", "2015-11-09 10:48:26.881050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:26.895061"], ["updated_at", "2015-11-09 10:48:26.895061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:26.908913"], ["updated_at", "2015-11-09 10:48:26.908913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:43.750158"], ["updated_at", "2015-11-09 10:48:43.750158"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:43.776001"], ["updated_at", "2015-11-09 10:48:43.776001"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:43.800554"], ["updated_at", "2015-11-09 10:48:43.800554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:43.822465"], ["updated_at", "2015-11-09 10:48:43.822465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:43.840503"], ["updated_at", "2015-11-09 10:48:43.840503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:43.853812"], ["updated_at", "2015-11-09 10:48:43.853812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "37b794f2-0a5e-43d3-a71a-ab53365bddcc"], ["created_at", "2015-11-09 10:48:43.858764"], ["updated_at", "2015-11-09 10:48:43.858764"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "37b794f2-0a5e-43d3-a71a-ab53365bddcc"], ["created_at", "2015-11-09 10:48:43.867538"], ["updated_at", "2015-11-09 10:48:43.867538"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:43.880849"], ["updated_at", "2015-11-09 10:48:43.880849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b45f23fe-a173-43c4-8d08-4ff85081c00a"], ["created_at", "2015-11-09 10:48:43.885908"], ["updated_at", "2015-11-09 10:48:43.885908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:43.903665"], ["updated_at", "2015-11-09 10:48:43.903665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:43.917736"], ["updated_at", "2015-11-09 10:48:43.917736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 10:48:43.937225"], ["updated_at", "2015-11-09 10:48:43.937225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:44.695372"], ["updated_at", "2015-11-09 11:13:44.695372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.2ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:44.720736"], ["updated_at", "2015-11-09 11:13:44.720736"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:44.745218"], ["updated_at", "2015-11-09 11:13:44.745218"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:44.765898"], ["updated_at", "2015-11-09 11:13:44.765898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:44.779267"], ["updated_at", "2015-11-09 11:13:44.779267"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:44.798598"], ["updated_at", "2015-11-09 11:13:44.798598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "39a33acf-78d7-42de-b2c5-1d307e332b84"], ["created_at", "2015-11-09 11:13:44.803702"], ["updated_at", "2015-11-09 11:13:44.803702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "39a33acf-78d7-42de-b2c5-1d307e332b84"], ["created_at", "2015-11-09 11:13:44.809774"], ["updated_at", "2015-11-09 11:13:44.809774"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:44.820189"], ["updated_at", "2015-11-09 11:13:44.820189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ccad9446-68d0-439a-9402-c86fd1e265b1"], ["created_at", "2015-11-09 11:13:44.827860"], ["updated_at", "2015-11-09 11:13:44.827860"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:44.843494"], ["updated_at", "2015-11-09 11:13:44.843494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:44.860081"], ["updated_at", "2015-11-09 11:13:44.860081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:44.874724"], ["updated_at", "2015-11-09 11:13:44.874724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-09 11:13:44.886763"], ["updated_at", "2015-11-09 11:13:44.886763"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (30.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:59.586248"], ["updated_at", "2015-11-09 11:13:59.586248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:59.638670"], ["updated_at", "2015-11-09 11:13:59.638670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:59.659292"], ["updated_at", "2015-11-09 11:13:59.659292"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:59.682424"], ["updated_at", "2015-11-09 11:13:59.682424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:59.701530"], ["updated_at", "2015-11-09 11:13:59.701530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:59.715677"], ["updated_at", "2015-11-09 11:13:59.715677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "59e41850-6d46-4f32-8713-467a5ea98860"], ["created_at", "2015-11-09 11:13:59.720601"], ["updated_at", "2015-11-09 11:13:59.720601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "59e41850-6d46-4f32-8713-467a5ea98860"], ["created_at", "2015-11-09 11:13:59.725869"], ["updated_at", "2015-11-09 11:13:59.725869"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:59.739049"], ["updated_at", "2015-11-09 11:13:59.739049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4c8c25de-3c09-4401-9559-dc6fe3c858e5"], ["created_at", "2015-11-09 11:13:59.744213"], ["updated_at", "2015-11-09 11:13:59.744213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:59.758566"], ["updated_at", "2015-11-09 11:13:59.758566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:59.772266"], ["updated_at", "2015-11-09 11:13:59.772266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:13:59.791578"], ["updated_at", "2015-11-09 11:13:59.791578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-09 11:13:59.809174"], ["updated_at", "2015-11-09 11:13:59.809174"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:12.352048"], ["updated_at", "2015-11-09 11:14:12.352048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:12.381015"], ["updated_at", "2015-11-09 11:14:12.381015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:12.401247"], ["updated_at", "2015-11-09 11:14:12.401247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:12.423891"], ["updated_at", "2015-11-09 11:14:12.423891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:12.444105"], ["updated_at", "2015-11-09 11:14:12.444105"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:12.459365"], ["updated_at", "2015-11-09 11:14:12.459365"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4ab44d8e-0b20-42bc-b1b3-2200949e1fdb"], ["created_at", "2015-11-09 11:14:12.467470"], ["updated_at", "2015-11-09 11:14:12.467470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4ab44d8e-0b20-42bc-b1b3-2200949e1fdb"], ["created_at", "2015-11-09 11:14:12.473712"], ["updated_at", "2015-11-09 11:14:12.473712"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:12.484149"], ["updated_at", "2015-11-09 11:14:12.484149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "41e5d60b-51c5-4fcf-92af-ee2c5bae53c4"], ["created_at", "2015-11-09 11:14:12.489088"], ["updated_at", "2015-11-09 11:14:12.489088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:12.503721"], ["updated_at", "2015-11-09 11:14:12.503721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:12.517766"], ["updated_at", "2015-11-09 11:14:12.517766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:12.533586"], ["updated_at", "2015-11-09 11:14:12.533586"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-09 11:14:12.547963"], ["updated_at", "2015-11-09 11:14:12.547963"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:47.119387"], ["updated_at", "2015-11-09 11:14:47.119387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:47.144906"], ["updated_at", "2015-11-09 11:14:47.144906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:47.171826"], ["updated_at", "2015-11-09 11:14:47.171826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:47.189784"], ["updated_at", "2015-11-09 11:14:47.189784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:47.206203"], ["updated_at", "2015-11-09 11:14:47.206203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:47.221130"], ["updated_at", "2015-11-09 11:14:47.221130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fe528d2e-e494-4756-963a-f1680a599124"], ["created_at", "2015-11-09 11:14:47.227739"], ["updated_at", "2015-11-09 11:14:47.227739"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fe528d2e-e494-4756-963a-f1680a599124"], ["created_at", "2015-11-09 11:14:47.236200"], ["updated_at", "2015-11-09 11:14:47.236200"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:47.248897"], ["updated_at", "2015-11-09 11:14:47.248897"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f1e4199b-667d-479e-872d-4ff30aa1d36c"], ["created_at", "2015-11-09 11:14:47.258050"], ["updated_at", "2015-11-09 11:14:47.258050"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:47.274553"], ["updated_at", "2015-11-09 11:14:47.274553"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:47.288359"], ["updated_at", "2015-11-09 11:14:47.288359"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:14:47.307777"], ["updated_at", "2015-11-09 11:14:47.307777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-09 11:14:47.321166"], ["updated_at", "2015-11-09 11:14:47.321166"]]  (0.7ms) COMMIT ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (9.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:22.705592"], ["updated_at", "2015-11-09 11:15:22.705592"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:22.739568"], ["updated_at", "2015-11-09 11:15:22.739568"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:22.765421"], ["updated_at", "2015-11-09 11:15:22.765421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:22.786570"], ["updated_at", "2015-11-09 11:15:22.786570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:22.800715"], ["updated_at", "2015-11-09 11:15:22.800715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:22.820326"], ["updated_at", "2015-11-09 11:15:22.820326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6310f20f-47fc-41f3-9d02-b24dce8e19dd"], ["created_at", "2015-11-09 11:15:22.825438"], ["updated_at", "2015-11-09 11:15:22.825438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6310f20f-47fc-41f3-9d02-b24dce8e19dd"], ["created_at", "2015-11-09 11:15:22.830981"], ["updated_at", "2015-11-09 11:15:22.830981"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:22.842451"], ["updated_at", "2015-11-09 11:15:22.842451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "69c727af-123a-4a88-b52a-0826587b205a"], ["created_at", "2015-11-09 11:15:22.847334"], ["updated_at", "2015-11-09 11:15:22.847334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:22.867931"], ["updated_at", "2015-11-09 11:15:22.867931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:22.885195"], ["updated_at", "2015-11-09 11:15:22.885195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:22.900416"], ["updated_at", "2015-11-09 11:15:22.900416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-09 11:15:22.918076"], ["updated_at", "2015-11-09 11:15:22.918076"]]  (0.5ms) COMMIT SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:36.343928"], ["updated_at", "2015-11-09 11:15:36.343928"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:36.370170"], ["updated_at", "2015-11-09 11:15:36.370170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:36.395886"], ["updated_at", "2015-11-09 11:15:36.395886"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:36.419231"], ["updated_at", "2015-11-09 11:15:36.419231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:36.438952"], ["updated_at", "2015-11-09 11:15:36.438952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:36.455022"], ["updated_at", "2015-11-09 11:15:36.455022"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1f7023e3-867a-405e-b296-6b8b22e15b15"], ["created_at", "2015-11-09 11:15:36.463474"], ["updated_at", "2015-11-09 11:15:36.463474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1f7023e3-867a-405e-b296-6b8b22e15b15"], ["created_at", "2015-11-09 11:15:36.471700"], ["updated_at", "2015-11-09 11:15:36.471700"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:36.484327"], ["updated_at", "2015-11-09 11:15:36.484327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "74316557-01e6-49bc-8bb2-60544dbfd386"], ["created_at", "2015-11-09 11:15:36.489173"], ["updated_at", "2015-11-09 11:15:36.489173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:36.509808"], ["updated_at", "2015-11-09 11:15:36.509808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:36.527797"], ["updated_at", "2015-11-09 11:15:36.527797"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:15:36.545045"], ["updated_at", "2015-11-09 11:15:36.545045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-09 11:15:36.560727"], ["updated_at", "2015-11-09 11:15:36.560727"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:16:51.406258"], ["updated_at", "2015-11-09 11:16:51.406258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:16:51.437512"], ["updated_at", "2015-11-09 11:16:51.437512"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:16:51.461822"], ["updated_at", "2015-11-09 11:16:51.461822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:16:51.479478"], ["updated_at", "2015-11-09 11:16:51.479478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:16:51.493246"], ["updated_at", "2015-11-09 11:16:51.493246"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:16:51.513400"], ["updated_at", "2015-11-09 11:16:51.513400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cbb4736e-5ee4-4a41-a973-5a9171589614"], ["created_at", "2015-11-09 11:16:51.518676"], ["updated_at", "2015-11-09 11:16:51.518676"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cbb4736e-5ee4-4a41-a973-5a9171589614"], ["created_at", "2015-11-09 11:16:51.526603"], ["updated_at", "2015-11-09 11:16:51.526603"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:16:51.539342"], ["updated_at", "2015-11-09 11:16:51.539342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1536e489-e80d-488d-988c-b0d806a11864"], ["created_at", "2015-11-09 11:16:51.544713"], ["updated_at", "2015-11-09 11:16:51.544713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:16:51.566995"], ["updated_at", "2015-11-09 11:16:51.566995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:16:51.584889"], ["updated_at", "2015-11-09 11:16:51.584889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-09 11:16:51.599541"], ["updated_at", "2015-11-09 11:16:51.599541"]]  (0.7ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:17:04.356078"], ["updated_at", "2015-11-09 11:17:04.356078"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:17:04.380082"], ["updated_at", "2015-11-09 11:17:04.380082"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:17:04.402602"], ["updated_at", "2015-11-09 11:17:04.402602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:17:04.420785"], ["updated_at", "2015-11-09 11:17:04.420785"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:17:04.438740"], ["updated_at", "2015-11-09 11:17:04.438740"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:17:04.453355"], ["updated_at", "2015-11-09 11:17:04.453355"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f05904b9-30dd-457b-aadf-0357cfa3958e"], ["created_at", "2015-11-09 11:17:04.461236"], ["updated_at", "2015-11-09 11:17:04.461236"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f05904b9-30dd-457b-aadf-0357cfa3958e"], ["created_at", "2015-11-09 11:17:04.468434"], ["updated_at", "2015-11-09 11:17:04.468434"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:17:04.480497"], ["updated_at", "2015-11-09 11:17:04.480497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5d7436fd-c182-44ce-a72a-eda845425470"], ["created_at", "2015-11-09 11:17:04.486374"], ["updated_at", "2015-11-09 11:17:04.486374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:17:04.504735"], ["updated_at", "2015-11-09 11:17:04.504735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:17:04.517585"], ["updated_at", "2015-11-09 11:17:04.517585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-09 11:17:04.535364"], ["updated_at", "2015-11-09 11:17:04.535364"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (24.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:23:46.548765"], ["updated_at", "2015-11-09 11:23:46.548765"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:23:46.594651"], ["updated_at", "2015-11-09 11:23:46.594651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:23:46.620592"], ["updated_at", "2015-11-09 11:23:46.620592"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:23:46.638133"], ["updated_at", "2015-11-09 11:23:46.638133"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:23:46.654718"], ["updated_at", "2015-11-09 11:23:46.654718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:23:46.673368"], ["updated_at", "2015-11-09 11:23:46.673368"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5f5c71b5-98f5-4c47-a539-8a3cccfe85fa"], ["created_at", "2015-11-09 11:23:46.678965"], ["updated_at", "2015-11-09 11:23:46.678965"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5f5c71b5-98f5-4c47-a539-8a3cccfe85fa"], ["created_at", "2015-11-09 11:23:46.686445"], ["updated_at", "2015-11-09 11:23:46.686445"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:23:46.697238"], ["updated_at", "2015-11-09 11:23:46.697238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3b210464-47dd-42f9-960d-813e8f7fefae"], ["created_at", "2015-11-09 11:23:46.702326"], ["updated_at", "2015-11-09 11:23:46.702326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:23:46.716925"], ["updated_at", "2015-11-09 11:23:46.716925"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:23:46.737941"], ["updated_at", "2015-11-09 11:23:46.737941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-09 11:23:46.752285"], ["updated_at", "2015-11-09 11:23:46.752285"]]  (0.7ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:26:27.344960"], ["updated_at", "2015-11-09 11:26:27.344960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:26:27.399084"], ["updated_at", "2015-11-09 11:26:27.399084"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:26:27.418428"], ["updated_at", "2015-11-09 11:26:27.418428"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:26:27.436631"], ["updated_at", "2015-11-09 11:26:27.436631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:26:27.454565"], ["updated_at", "2015-11-09 11:26:27.454565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:26:27.467517"], ["updated_at", "2015-11-09 11:26:27.467517"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:26:27.484564"], ["updated_at", "2015-11-09 11:26:27.484564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:26:27.502536"], ["updated_at", "2015-11-09 11:26:27.502536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-09 11:26:27.515520"], ["updated_at", "2015-11-09 11:26:27.515520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-09 11:26:27.533270"], ["updated_at", "2015-11-09 11:26:27.533270"]]  (0.7ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (36.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:04:41.362985"], ["updated_at", "2015-11-10 20:04:41.362985"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:05:15.984170"], ["updated_at", "2015-11-10 20:05:15.984170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:05:16.948541"], ["updated_at", "2015-11-10 20:05:16.948541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:05:18.156239"], ["updated_at", "2015-11-10 20:05:18.156239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:05:18.911707"], ["updated_at", "2015-11-10 20:05:18.911707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:05:19.700800"], ["updated_at", "2015-11-10 20:05:19.700800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:05:20.407050"], ["updated_at", "2015-11-10 20:05:20.407050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:05:21.078063"], ["updated_at", "2015-11-10 20:05:21.078063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:05:21.699895"], ["updated_at", "2015-11-10 20:05:21.699895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:05:22.337413"], ["updated_at", "2015-11-10 20:05:22.337413"]]  (3.2ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK SQL (3.8ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:05:28.763593"], ["updated_at", "2015-11-10 20:05:28.763593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Article Exists (4.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:45.157807"], ["updated_at", "2015-11-10 20:10:45.157807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:47.182002"], ["updated_at", "2015-11-10 20:10:47.182002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:47.980435"], ["updated_at", "2015-11-10 20:10:47.980435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:48.439882"], ["updated_at", "2015-11-10 20:10:48.439882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:49.083542"], ["updated_at", "2015-11-10 20:10:49.083542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:49.771508"], ["updated_at", "2015-11-10 20:10:49.771508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:50.342630"], ["updated_at", "2015-11-10 20:10:50.342630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:50.843204"], ["updated_at", "2015-11-10 20:10:50.843204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:10:51.766584"], ["updated_at", "2015-11-10 20:10:51.766584"]]  (3.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK SQL (5.3ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:53.765126"], ["updated_at", "2015-11-10 20:10:53.765126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:53.770045"], ["updated_at", "2015-11-10 20:10:53.770045"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:53.780256"], ["updated_at", "2015-11-10 20:10:53.780256"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:53.803525"], ["updated_at", "2015-11-10 20:10:53.803525"]]  (0.3ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (3.9ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:54.727513"], ["updated_at", "2015-11-10 20:10:54.727513"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_articles" SQL (3.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:57.081774"], ["updated_at", "2015-11-10 20:10:57.081774"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-10 15:10:57 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"aaa69132-d482-46d7-a6b1-5cce1a08de4f"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "aaa69132-d482-46d7-a6b1-5cce1a08de4f"]] Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.4ms) ROLLBACK Completed 422 Unprocessable Entity in 976ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (3.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:58.103829"], ["updated_at", "2015-11-10 20:10:58.103829"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK SQL (3.7ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:10:59.089929"], ["updated_at", "2015-11-10 20:10:59.089929"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK SQL (3.7ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:00.054252"], ["updated_at", "2015-11-10 20:11:00.054252"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-10 15:11:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:00.085159"], ["updated_at", "2015-11-10 20:11:00.085159"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/57292402-729d-4ae8-8315-f2f9fdbd0ba3" for 127.0.0.1 at 2015-11-10 15:11:00 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"57292402-729d-4ae8-8315-f2f9fdbd0ba3"} Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "57292402-729d-4ae8-8315-f2f9fdbd0ba3"]] Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-10 15:11:00 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-10 20:11:00.118517"], ["updated_at", "2015-11-10 20:11:00.118517"]]  (0.5ms) COMMIT Completed 201 Created in 11ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:00.137258"], ["updated_at", "2015-11-10 20:11:00.137258"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/6f2ba546-ba85-4670-a57d-dac023cf9221" for 127.0.0.1 at 2015-11-10 15:11:00 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"6f2ba546-ba85-4670-a57d-dac023cf9221"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "6f2ba546-ba85-4670-a57d-dac023cf9221"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "6f2ba546-ba85-4670-a57d-dac023cf9221"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:00.155201"], ["updated_at", "2015-11-10 20:11:00.155201"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/15f57e4a-197e-4758-9e92-6f4fefad61a0" for 127.0.0.1 at 2015-11-10 15:11:00 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"15f57e4a-197e-4758-9e92-6f4fefad61a0", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"15f57e4a-197e-4758-9e92-6f4fefad61a0"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "15f57e4a-197e-4758-9e92-6f4fefad61a0"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '15f57e4a-197e-4758-9e92-6f4fefad61a0') LIMIT 1 SQL (0.7ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-10 20:11:00.174666"], ["id", "15f57e4a-197e-4758-9e92-6f4fefad61a0"]]  (0.5ms) COMMIT Completed 200 OK in 21ms (Views: 0.4ms | ActiveRecord: 2.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "15f57e4a-197e-4758-9e92-6f4fefad61a0"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:44.139787"], ["updated_at", "2015-11-10 20:11:44.139787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:44.181679"], ["updated_at", "2015-11-10 20:11:44.181679"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:44.200341"], ["updated_at", "2015-11-10 20:11:44.200341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:44.218339"], ["updated_at", "2015-11-10 20:11:44.218339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:44.232294"], ["updated_at", "2015-11-10 20:11:44.232294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:44.252091"], ["updated_at", "2015-11-10 20:11:44.252091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:44.268937"], ["updated_at", "2015-11-10 20:11:44.268937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:44.287379"], ["updated_at", "2015-11-10 20:11:44.287379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:11:44.304837"], ["updated_at", "2015-11-10 20:11:44.304837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:11:44.323784"], ["updated_at", "2015-11-10 20:11:44.323784"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:16.614421"], ["updated_at", "2015-11-10 20:12:16.614421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:16.660822"], ["updated_at", "2015-11-10 20:12:16.660822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:16.678883"], ["updated_at", "2015-11-10 20:12:16.678883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:16.697343"], ["updated_at", "2015-11-10 20:12:16.697343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:16.710847"], ["updated_at", "2015-11-10 20:12:16.710847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:16.724243"], ["updated_at", "2015-11-10 20:12:16.724243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:16.738594"], ["updated_at", "2015-11-10 20:12:16.738594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:16.752632"], ["updated_at", "2015-11-10 20:12:16.752632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:16.766384"], ["updated_at", "2015-11-10 20:12:16.766384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:12:16.780145"], ["updated_at", "2015-11-10 20:12:16.780145"]]  (3.2ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:37.807482"], ["updated_at", "2015-11-10 20:12:37.807482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:37.831436"], ["updated_at", "2015-11-10 20:12:37.831436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:37.854932"], ["updated_at", "2015-11-10 20:12:37.854932"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:37.874554"], ["updated_at", "2015-11-10 20:12:37.874554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:37.900737"], ["updated_at", "2015-11-10 20:12:37.900737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:37.914345"], ["updated_at", "2015-11-10 20:12:37.914345"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "be84c652-f854-45d8-b07b-e1b7dc22b70b"], ["created_at", "2015-11-10 20:12:37.920835"], ["updated_at", "2015-11-10 20:12:37.920835"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "be84c652-f854-45d8-b07b-e1b7dc22b70b"], ["created_at", "2015-11-10 20:12:37.925855"], ["updated_at", "2015-11-10 20:12:37.925855"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:37.937991"], ["updated_at", "2015-11-10 20:12:37.937991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6ac6d695-1163-4b40-900b-7d3ab8651fb6"], ["created_at", "2015-11-10 20:12:37.943122"], ["updated_at", "2015-11-10 20:12:37.943122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:37.956357"], ["updated_at", "2015-11-10 20:12:37.956357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:12:37.973720"], ["updated_at", "2015-11-10 20:12:37.973720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:12:37.989168"], ["updated_at", "2015-11-10 20:12:37.989168"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:13:37.931255"], ["updated_at", "2015-11-10 20:13:37.931255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:13:37.958599"], ["updated_at", "2015-11-10 20:13:37.958599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:13:37.978233"], ["updated_at", "2015-11-10 20:13:37.978233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:13:37.997003"], ["updated_at", "2015-11-10 20:13:37.997003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:13:38.016529"], ["updated_at", "2015-11-10 20:13:38.016529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:13:38.032542"], ["updated_at", "2015-11-10 20:13:38.032542"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4f36c0e0-fa67-45df-b0d9-0422ea831ad9"], ["created_at", "2015-11-10 20:13:38.041714"], ["updated_at", "2015-11-10 20:13:38.041714"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4f36c0e0-fa67-45df-b0d9-0422ea831ad9"], ["created_at", "2015-11-10 20:13:38.047521"], ["updated_at", "2015-11-10 20:13:38.047521"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:13:38.059033"], ["updated_at", "2015-11-10 20:13:38.059033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4d113221-26c6-451e-b58b-8617a13cfc9e"], ["created_at", "2015-11-10 20:13:38.064597"], ["updated_at", "2015-11-10 20:13:38.064597"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:13:38.083170"], ["updated_at", "2015-11-10 20:13:38.083170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:13:38.099460"], ["updated_at", "2015-11-10 20:13:38.099460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:13:38.116810"], ["updated_at", "2015-11-10 20:13:38.116810"]]  (3.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:16:41.430023"], ["updated_at", "2015-11-10 20:16:41.430023"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:16:41.455751"], ["updated_at", "2015-11-10 20:16:41.455751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:16:41.478643"], ["updated_at", "2015-11-10 20:16:41.478643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:16:41.496983"], ["updated_at", "2015-11-10 20:16:41.496983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:16:41.511729"], ["updated_at", "2015-11-10 20:16:41.511729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:16:41.526784"], ["updated_at", "2015-11-10 20:16:41.526784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "066dba82-07a5-46e3-9a74-edf64af47927"], ["created_at", "2015-11-10 20:16:41.532344"], ["updated_at", "2015-11-10 20:16:41.532344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "066dba82-07a5-46e3-9a74-edf64af47927"], ["created_at", "2015-11-10 20:16:41.537532"], ["updated_at", "2015-11-10 20:16:41.537532"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:16:41.550683"], ["updated_at", "2015-11-10 20:16:41.550683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d2af5277-39ec-4146-98fc-0d2c9149e546"], ["created_at", "2015-11-10 20:16:41.556217"], ["updated_at", "2015-11-10 20:16:41.556217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:16:41.572840"], ["updated_at", "2015-11-10 20:16:41.572840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:16:41.590864"], ["updated_at", "2015-11-10 20:16:41.590864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:16:41.614585"], ["updated_at", "2015-11-10 20:16:41.614585"]]  (3.2ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:18:02.937014"], ["updated_at", "2015-11-10 20:18:02.937014"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:18:02.967740"], ["updated_at", "2015-11-10 20:18:02.967740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:18:02.992797"], ["updated_at", "2015-11-10 20:18:02.992797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:18:03.010316"], ["updated_at", "2015-11-10 20:18:03.010316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:18:03.024429"], ["updated_at", "2015-11-10 20:18:03.024429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:18:03.039460"], ["updated_at", "2015-11-10 20:18:03.039460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e7e0ade7-d3d3-4590-a254-4489aa20591e"], ["created_at", "2015-11-10 20:18:03.045046"], ["updated_at", "2015-11-10 20:18:03.045046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e7e0ade7-d3d3-4590-a254-4489aa20591e"], ["created_at", "2015-11-10 20:18:03.050670"], ["updated_at", "2015-11-10 20:18:03.050670"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:18:03.073111"], ["updated_at", "2015-11-10 20:18:03.073111"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3db4bf67-2b5d-4e7a-a036-072360f2ca7a"], ["created_at", "2015-11-10 20:18:03.081532"], ["updated_at", "2015-11-10 20:18:03.081532"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:18:03.098170"], ["updated_at", "2015-11-10 20:18:03.098170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:18:03.113057"], ["updated_at", "2015-11-10 20:18:03.113057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:18:03.128311"], ["updated_at", "2015-11-10 20:18:03.128311"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:18:03.147004"], ["updated_at", "2015-11-10 20:18:03.147004"]]  (0.3ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (2.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:13.393580"], ["updated_at", "2015-11-10 20:23:13.393580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:13.418318"], ["updated_at", "2015-11-10 20:23:13.418318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:13.441553"], ["updated_at", "2015-11-10 20:23:13.441553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:13.460540"], ["updated_at", "2015-11-10 20:23:13.460540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:13.479035"], ["updated_at", "2015-11-10 20:23:13.479035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:13.493309"], ["updated_at", "2015-11-10 20:23:13.493309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1f832d0d-3806-4e7a-ae12-55b0fa7dc710"], ["created_at", "2015-11-10 20:23:13.498109"], ["updated_at", "2015-11-10 20:23:13.498109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1f832d0d-3806-4e7a-ae12-55b0fa7dc710"], ["created_at", "2015-11-10 20:23:13.502562"], ["updated_at", "2015-11-10 20:23:13.502562"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:13.517647"], ["updated_at", "2015-11-10 20:23:13.517647"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e698f44d-2edf-4ccb-9878-7b0df78ba1d2"], ["created_at", "2015-11-10 20:23:13.525434"], ["updated_at", "2015-11-10 20:23:13.525434"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:13.546463"], ["updated_at", "2015-11-10 20:23:13.546463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:13.559093"], ["updated_at", "2015-11-10 20:23:13.559093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:13.574271"], ["updated_at", "2015-11-10 20:23:13.574271"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:23:13.605611"], ["updated_at", "2015-11-10 20:23:13.605611"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:28.013989"], ["updated_at", "2015-11-10 20:23:28.013989"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:28.040276"], ["updated_at", "2015-11-10 20:23:28.040276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:28.061343"], ["updated_at", "2015-11-10 20:23:28.061343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:28.077986"], ["updated_at", "2015-11-10 20:23:28.077986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:28.092694"], ["updated_at", "2015-11-10 20:23:28.092694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:28.107843"], ["updated_at", "2015-11-10 20:23:28.107843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "70f695c5-9350-4c9f-b97a-c69d6b619a6e"], ["created_at", "2015-11-10 20:23:28.113552"], ["updated_at", "2015-11-10 20:23:28.113552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "70f695c5-9350-4c9f-b97a-c69d6b619a6e"], ["created_at", "2015-11-10 20:23:28.118069"], ["updated_at", "2015-11-10 20:23:28.118069"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:28.127971"], ["updated_at", "2015-11-10 20:23:28.127971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "567933e0-0c1e-4fe4-9ae1-7080a21fb725"], ["created_at", "2015-11-10 20:23:28.135695"], ["updated_at", "2015-11-10 20:23:28.135695"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:28.150732"], ["updated_at", "2015-11-10 20:23:28.150732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:28.167687"], ["updated_at", "2015-11-10 20:23:28.167687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:23:28.180676"], ["updated_at", "2015-11-10 20:23:28.180676"]]  (0.7ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:23:28.202728"], ["updated_at", "2015-11-10 20:23:28.202728"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:25:21.467794"], ["updated_at", "2015-11-10 20:25:21.467794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:25:21.493580"], ["updated_at", "2015-11-10 20:25:21.493580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:25:21.517543"], ["updated_at", "2015-11-10 20:25:21.517543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:25:21.540439"], ["updated_at", "2015-11-10 20:25:21.540439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:25:21.554370"], ["updated_at", "2015-11-10 20:25:21.554370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:25:21.571258"], ["updated_at", "2015-11-10 20:25:21.571258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0f51ef5a-20ce-48fa-8058-62d7f815da19"], ["created_at", "2015-11-10 20:25:21.578430"], ["updated_at", "2015-11-10 20:25:21.578430"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0f51ef5a-20ce-48fa-8058-62d7f815da19"], ["created_at", "2015-11-10 20:25:21.586634"], ["updated_at", "2015-11-10 20:25:21.586634"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:25:21.601092"], ["updated_at", "2015-11-10 20:25:21.601092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8b8a17de-b3c8-4b28-8d7e-5d44049389d2"], ["created_at", "2015-11-10 20:25:21.605877"], ["updated_at", "2015-11-10 20:25:21.605877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:25:21.623660"], ["updated_at", "2015-11-10 20:25:21.623660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:25:21.636368"], ["updated_at", "2015-11-10 20:25:21.636368"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:25:21.654987"], ["updated_at", "2015-11-10 20:25:21.654987"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:25:21.673065"], ["updated_at", "2015-11-10 20:25:21.673065"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:26:54.399000"], ["updated_at", "2015-11-10 20:26:54.399000"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:26:54.425640"], ["updated_at", "2015-11-10 20:26:54.425640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:26:54.449060"], ["updated_at", "2015-11-10 20:26:54.449060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:26:54.473210"], ["updated_at", "2015-11-10 20:26:54.473210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:26:54.486809"], ["updated_at", "2015-11-10 20:26:54.486809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:26:54.504504"], ["updated_at", "2015-11-10 20:26:54.504504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "54948b9c-683a-41a1-b9d2-27aab212cd52"], ["created_at", "2015-11-10 20:26:54.509453"], ["updated_at", "2015-11-10 20:26:54.509453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "54948b9c-683a-41a1-b9d2-27aab212cd52"], ["created_at", "2015-11-10 20:26:54.513802"], ["updated_at", "2015-11-10 20:26:54.513802"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:26:54.523463"], ["updated_at", "2015-11-10 20:26:54.523463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e96b13bf-a1c5-402e-b4f3-d2727841c6cf"], ["created_at", "2015-11-10 20:26:54.528059"], ["updated_at", "2015-11-10 20:26:54.528059"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:26:54.547559"], ["updated_at", "2015-11-10 20:26:54.547559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:26:54.564758"], ["updated_at", "2015-11-10 20:26:54.564758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:26:54.583762"], ["updated_at", "2015-11-10 20:26:54.583762"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:26:54.604324"], ["updated_at", "2015-11-10 20:26:54.604324"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:26:54.627907"], ["updated_at", "2015-11-10 20:26:54.627907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:26:54.640404"], ["updated_at", "2015-11-10 20:26:54.640404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:15.845357"], ["updated_at", "2015-11-10 20:27:15.845357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:15.865813"], ["updated_at", "2015-11-10 20:27:15.865813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:15.888250"], ["updated_at", "2015-11-10 20:27:15.888250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:15.904055"], ["updated_at", "2015-11-10 20:27:15.904055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:15.921837"], ["updated_at", "2015-11-10 20:27:15.921837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:15.935610"], ["updated_at", "2015-11-10 20:27:15.935610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a251c6df-133d-424b-860e-dc3ef8536d70"], ["created_at", "2015-11-10 20:27:15.940401"], ["updated_at", "2015-11-10 20:27:15.940401"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a251c6df-133d-424b-860e-dc3ef8536d70"], ["created_at", "2015-11-10 20:27:15.947124"], ["updated_at", "2015-11-10 20:27:15.947124"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:15.957281"], ["updated_at", "2015-11-10 20:27:15.957281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d986c528-b700-4d10-bd51-5ce3b6cb55cb"], ["created_at", "2015-11-10 20:27:15.961995"], ["updated_at", "2015-11-10 20:27:15.961995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:15.974778"], ["updated_at", "2015-11-10 20:27:15.974778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:15.991782"], ["updated_at", "2015-11-10 20:27:15.991782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:16.005647"], ["updated_at", "2015-11-10 20:27:16.005647"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:16.019992"], ["updated_at", "2015-11-10 20:27:16.019992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:27:16.031454"], ["updated_at", "2015-11-10 20:27:16.031454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:27:16.046110"], ["updated_at", "2015-11-10 20:27:16.046110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:27:16.058805"], ["updated_at", "2015-11-10 20:27:16.058805"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.324390"], ["updated_at", "2015-11-10 20:27:59.324390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.350090"], ["updated_at", "2015-11-10 20:27:59.350090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.368645"], ["updated_at", "2015-11-10 20:27:59.368645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.389228"], ["updated_at", "2015-11-10 20:27:59.389228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.406994"], ["updated_at", "2015-11-10 20:27:59.406994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.420349"], ["updated_at", "2015-11-10 20:27:59.420349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "73d7416c-6328-4e1d-9388-759c5fe86a0f"], ["created_at", "2015-11-10 20:27:59.424973"], ["updated_at", "2015-11-10 20:27:59.424973"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "73d7416c-6328-4e1d-9388-759c5fe86a0f"], ["created_at", "2015-11-10 20:27:59.432994"], ["updated_at", "2015-11-10 20:27:59.432994"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.445254"], ["updated_at", "2015-11-10 20:27:59.445254"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e1cf5274-d4aa-4a1c-b32e-42626306ad13"], ["created_at", "2015-11-10 20:27:59.453046"], ["updated_at", "2015-11-10 20:27:59.453046"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.468564"], ["updated_at", "2015-11-10 20:27:59.468564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.487117"], ["updated_at", "2015-11-10 20:27:59.487117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.500763"], ["updated_at", "2015-11-10 20:27:59.500763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.516950"], ["updated_at", "2015-11-10 20:27:59.516950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:27:59.528072"], ["updated_at", "2015-11-10 20:27:59.528072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:27:59.545056"], ["updated_at", "2015-11-10 20:27:59.545056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:27:59.565663"], ["updated_at", "2015-11-10 20:27:59.565663"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:27:59.589068"], ["updated_at", "2015-11-10 20:27:59.589068"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.496165"], ["updated_at", "2015-11-10 20:28:57.496165"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.521353"], ["updated_at", "2015-11-10 20:28:57.521353"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.549162"], ["updated_at", "2015-11-10 20:28:57.549162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.570958"], ["updated_at", "2015-11-10 20:28:57.570958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.583956"], ["updated_at", "2015-11-10 20:28:57.583956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.602429"], ["updated_at", "2015-11-10 20:28:57.602429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "96fd5677-21a1-45b4-a859-ad72128f25b4"], ["created_at", "2015-11-10 20:28:57.607353"], ["updated_at", "2015-11-10 20:28:57.607353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "96fd5677-21a1-45b4-a859-ad72128f25b4"], ["created_at", "2015-11-10 20:28:57.612105"], ["updated_at", "2015-11-10 20:28:57.612105"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.622027"], ["updated_at", "2015-11-10 20:28:57.622027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "365471ca-5179-47a1-b5f5-311a85aadb75"], ["created_at", "2015-11-10 20:28:57.626995"], ["updated_at", "2015-11-10 20:28:57.626995"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.648340"], ["updated_at", "2015-11-10 20:28:57.648340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.661704"], ["updated_at", "2015-11-10 20:28:57.661704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.675099"], ["updated_at", "2015-11-10 20:28:57.675099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.687637"], ["updated_at", "2015-11-10 20:28:57.687637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:28:57.703788"], ["updated_at", "2015-11-10 20:28:57.703788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:28:57.732000"], ["updated_at", "2015-11-10 20:28:57.732000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:28:57.758723"], ["updated_at", "2015-11-10 20:28:57.758723"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:28:57.776713"], ["updated_at", "2015-11-10 20:28:57.776713"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:13.969960"], ["updated_at", "2015-11-10 20:29:13.969960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:13.995616"], ["updated_at", "2015-11-10 20:29:13.995616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:14.018874"], ["updated_at", "2015-11-10 20:29:14.018874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:14.036087"], ["updated_at", "2015-11-10 20:29:14.036087"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:14.053775"], ["updated_at", "2015-11-10 20:29:14.053775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:14.068095"], ["updated_at", "2015-11-10 20:29:14.068095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ffe20be6-882d-4ca3-936e-a9f8b1fc3348"], ["created_at", "2015-11-10 20:29:14.075830"], ["updated_at", "2015-11-10 20:29:14.075830"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ffe20be6-882d-4ca3-936e-a9f8b1fc3348"], ["created_at", "2015-11-10 20:29:14.083325"], ["updated_at", "2015-11-10 20:29:14.083325"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:14.095243"], ["updated_at", "2015-11-10 20:29:14.095243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "45ddd79b-c032-466c-b125-8bb3a3f1c14a"], ["created_at", "2015-11-10 20:29:14.100762"], ["updated_at", "2015-11-10 20:29:14.100762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:14.114123"], ["updated_at", "2015-11-10 20:29:14.114123"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:14.130122"], ["updated_at", "2015-11-10 20:29:14.130122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:14.148974"], ["updated_at", "2015-11-10 20:29:14.148974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:14.162372"], ["updated_at", "2015-11-10 20:29:14.162372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 20:29:14.173543"], ["updated_at", "2015-11-10 20:29:14.173543"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:29:14.190085"], ["updated_at", "2015-11-10 20:29:14.190085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:29:14.215784"], ["updated_at", "2015-11-10 20:29:14.215784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 20:29:14.235397"], ["updated_at", "2015-11-10 20:29:14.235397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (23.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.070468"], ["updated_at", "2015-11-10 21:19:37.070468"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.115796"], ["updated_at", "2015-11-10 21:19:37.115796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.139982"], ["updated_at", "2015-11-10 21:19:37.139982"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.161055"], ["updated_at", "2015-11-10 21:19:37.161055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.174264"], ["updated_at", "2015-11-10 21:19:37.174264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.192383"], ["updated_at", "2015-11-10 21:19:37.192383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "791e498a-520b-45a0-9022-b40dfab90963"], ["created_at", "2015-11-10 21:19:37.197058"], ["updated_at", "2015-11-10 21:19:37.197058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "791e498a-520b-45a0-9022-b40dfab90963"], ["created_at", "2015-11-10 21:19:37.202484"], ["updated_at", "2015-11-10 21:19:37.202484"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.213383"], ["updated_at", "2015-11-10 21:19:37.213383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b8eae3e8-025a-482c-8a9c-472450f7b91b"], ["created_at", "2015-11-10 21:19:37.218142"], ["updated_at", "2015-11-10 21:19:37.218142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.235897"], ["updated_at", "2015-11-10 21:19:37.235897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.253698"], ["updated_at", "2015-11-10 21:19:37.253698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.267664"], ["updated_at", "2015-11-10 21:19:37.267664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.280303"], ["updated_at", "2015-11-10 21:19:37.280303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:19:37.297468"], ["updated_at", "2015-11-10 21:19:37.297468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:19:37.308703"], ["updated_at", "2015-11-10 21:19:37.308703"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:19:37.337201"], ["updated_at", "2015-11-10 21:19:37.337201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:19:37.357859"], ["updated_at", "2015-11-10 21:19:37.357859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (6.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.088716"], ["updated_at", "2015-11-10 21:27:50.088716"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.114978"], ["updated_at", "2015-11-10 21:27:50.114978"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.136502"], ["updated_at", "2015-11-10 21:27:50.136502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.155337"], ["updated_at", "2015-11-10 21:27:50.155337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.169187"], ["updated_at", "2015-11-10 21:27:50.169187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.183286"], ["updated_at", "2015-11-10 21:27:50.183286"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.195453"], ["updated_at", "2015-11-10 21:27:50.195453"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.210652"], ["updated_at", "2015-11-10 21:27:50.210652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.222053"], ["updated_at", "2015-11-10 21:27:50.222053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.233534"], ["updated_at", "2015-11-10 21:27:50.233534"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.248785"], ["updated_at", "2015-11-10 21:27:50.248785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:27:50.259142"], ["updated_at", "2015-11-10 21:27:50.259142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:27:50.270698"], ["updated_at", "2015-11-10 21:27:50.270698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:27:50.285252"], ["updated_at", "2015-11-10 21:27:50.285252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:27:50.298383"], ["updated_at", "2015-11-10 21:27:50.298383"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.254455"], ["updated_at", "2015-11-10 21:29:50.254455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.276006"], ["updated_at", "2015-11-10 21:29:50.276006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.298700"], ["updated_at", "2015-11-10 21:29:50.298700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.311766"], ["updated_at", "2015-11-10 21:29:50.311766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.329493"], ["updated_at", "2015-11-10 21:29:50.329493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.340510"], ["updated_at", "2015-11-10 21:29:50.340510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.352029"], ["updated_at", "2015-11-10 21:29:50.352029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.362580"], ["updated_at", "2015-11-10 21:29:50.362580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.378727"], ["updated_at", "2015-11-10 21:29:50.378727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.390664"], ["updated_at", "2015-11-10 21:29:50.390664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.401493"], ["updated_at", "2015-11-10 21:29:50.401493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:29:50.415671"], ["updated_at", "2015-11-10 21:29:50.415671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:29:50.426939"], ["updated_at", "2015-11-10 21:29:50.426939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:29:50.444388"], ["updated_at", "2015-11-10 21:29:50.444388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:29:50.456966"], ["updated_at", "2015-11-10 21:29:50.456966"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.391153"], ["updated_at", "2015-11-10 21:31:21.391153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.442448"], ["updated_at", "2015-11-10 21:31:21.442448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.456513"], ["updated_at", "2015-11-10 21:31:21.456513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.478322"], ["updated_at", "2015-11-10 21:31:21.478322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.492568"], ["updated_at", "2015-11-10 21:31:21.492568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.505369"], ["updated_at", "2015-11-10 21:31:21.505369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.519363"], ["updated_at", "2015-11-10 21:31:21.519363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.532132"], ["updated_at", "2015-11-10 21:31:21.532132"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.551763"], ["updated_at", "2015-11-10 21:31:21.551763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.565680"], ["updated_at", "2015-11-10 21:31:21.565680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.583759"], ["updated_at", "2015-11-10 21:31:21.583759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:31:21.596091"], ["updated_at", "2015-11-10 21:31:21.596091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:31:21.607850"], ["updated_at", "2015-11-10 21:31:21.607850"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:31:21.634363"], ["updated_at", "2015-11-10 21:31:21.634363"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:31:21.652694"], ["updated_at", "2015-11-10 21:31:21.652694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.522255"], ["updated_at", "2015-11-10 21:32:22.522255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.563962"], ["updated_at", "2015-11-10 21:32:22.563962"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.581796"], ["updated_at", "2015-11-10 21:32:22.581796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.602689"], ["updated_at", "2015-11-10 21:32:22.602689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.617946"], ["updated_at", "2015-11-10 21:32:22.617946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.631682"], ["updated_at", "2015-11-10 21:32:22.631682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.645709"], ["updated_at", "2015-11-10 21:32:22.645709"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.663608"], ["updated_at", "2015-11-10 21:32:22.663608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.676929"], ["updated_at", "2015-11-10 21:32:22.676929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.693235"], ["updated_at", "2015-11-10 21:32:22.693235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.708530"], ["updated_at", "2015-11-10 21:32:22.708530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:32:22.724139"], ["updated_at", "2015-11-10 21:32:22.724139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:32:22.738145"], ["updated_at", "2015-11-10 21:32:22.738145"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:32:22.766361"], ["updated_at", "2015-11-10 21:32:22.766361"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:32:22.780834"], ["updated_at", "2015-11-10 21:32:22.780834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.120939"], ["updated_at", "2015-11-10 21:45:16.120939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.144827"], ["updated_at", "2015-11-10 21:45:16.144827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.170014"], ["updated_at", "2015-11-10 21:45:16.170014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.186646"], ["updated_at", "2015-11-10 21:45:16.186646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.205074"], ["updated_at", "2015-11-10 21:45:16.205074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.218758"], ["updated_at", "2015-11-10 21:45:16.218758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7f160ad2-b0b1-4cc9-ad4b-2f682d40ff25"], ["created_at", "2015-11-10 21:45:16.226615"], ["updated_at", "2015-11-10 21:45:16.226615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7f160ad2-b0b1-4cc9-ad4b-2f682d40ff25"], ["created_at", "2015-11-10 21:45:16.234321"], ["updated_at", "2015-11-10 21:45:16.234321"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.244615"], ["updated_at", "2015-11-10 21:45:16.244615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "77e1eab3-5d8d-4585-ae83-bb8b56693495"], ["created_at", "2015-11-10 21:45:16.252341"], ["updated_at", "2015-11-10 21:45:16.252341"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.268439"], ["updated_at", "2015-11-10 21:45:16.268439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.285541"], ["updated_at", "2015-11-10 21:45:16.285541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.300209"], ["updated_at", "2015-11-10 21:45:16.300209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.318889"], ["updated_at", "2015-11-10 21:45:16.318889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:45:16.333238"], ["updated_at", "2015-11-10 21:45:16.333238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:45:16.347226"], ["updated_at", "2015-11-10 21:45:16.347226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:45:16.363278"], ["updated_at", "2015-11-10 21:45:16.363278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:45:16.389439"], ["updated_at", "2015-11-10 21:45:16.389439"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.065344"], ["updated_at", "2015-11-10 21:50:47.065344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.117653"], ["updated_at", "2015-11-10 21:50:47.117653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.138055"], ["updated_at", "2015-11-10 21:50:47.138055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.154853"], ["updated_at", "2015-11-10 21:50:47.154853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.171797"], ["updated_at", "2015-11-10 21:50:47.171797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.189998"], ["updated_at", "2015-11-10 21:50:47.189998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.204740"], ["updated_at", "2015-11-10 21:50:47.204740"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.222887"], ["updated_at", "2015-11-10 21:50:47.222887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.241597"], ["updated_at", "2015-11-10 21:50:47.241597"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.255752"], ["updated_at", "2015-11-10 21:50:47.255752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.274030"], ["updated_at", "2015-11-10 21:50:47.274030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:50:47.285044"], ["updated_at", "2015-11-10 21:50:47.285044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:50:47.298249"], ["updated_at", "2015-11-10 21:50:47.298249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:50:47.328052"], ["updated_at", "2015-11-10 21:50:47.328052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:50:47.342221"], ["updated_at", "2015-11-10 21:50:47.342221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:16.834106"], ["updated_at", "2015-11-10 21:51:16.834106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:16.887327"], ["updated_at", "2015-11-10 21:51:16.887327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:16.903273"], ["updated_at", "2015-11-10 21:51:16.903273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:16.926303"], ["updated_at", "2015-11-10 21:51:16.926303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:16.941689"], ["updated_at", "2015-11-10 21:51:16.941689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:16.955350"], ["updated_at", "2015-11-10 21:51:16.955350"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:16.971662"], ["updated_at", "2015-11-10 21:51:16.971662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:16.990430"], ["updated_at", "2015-11-10 21:51:16.990430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:17.004233"], ["updated_at", "2015-11-10 21:51:17.004233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:17.019792"], ["updated_at", "2015-11-10 21:51:17.019792"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:17.037083"], ["updated_at", "2015-11-10 21:51:17.037083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:51:17.047853"], ["updated_at", "2015-11-10 21:51:17.047853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:51:17.061122"], ["updated_at", "2015-11-10 21:51:17.061122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:51:17.091777"], ["updated_at", "2015-11-10 21:51:17.091777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:51:17.107478"], ["updated_at", "2015-11-10 21:51:17.107478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.750821"], ["updated_at", "2015-11-10 21:53:55.750821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.800839"], ["updated_at", "2015-11-10 21:53:55.800839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.819561"], ["updated_at", "2015-11-10 21:53:55.819561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.836385"], ["updated_at", "2015-11-10 21:53:55.836385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.850417"], ["updated_at", "2015-11-10 21:53:55.850417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.866306"], ["updated_at", "2015-11-10 21:53:55.866306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.881122"], ["updated_at", "2015-11-10 21:53:55.881122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.899601"], ["updated_at", "2015-11-10 21:53:55.899601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.913444"], ["updated_at", "2015-11-10 21:53:55.913444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.927228"], ["updated_at", "2015-11-10 21:53:55.927228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.945953"], ["updated_at", "2015-11-10 21:53:55.945953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:53:55.956764"], ["updated_at", "2015-11-10 21:53:55.956764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:53:55.968492"], ["updated_at", "2015-11-10 21:53:55.968492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:53:55.998399"], ["updated_at", "2015-11-10 21:53:55.998399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:53:56.017764"], ["updated_at", "2015-11-10 21:53:56.017764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:47.818232"], ["updated_at", "2015-11-10 21:54:47.818232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:47.840855"], ["updated_at", "2015-11-10 21:54:47.840855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:47.861178"], ["updated_at", "2015-11-10 21:54:47.861178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:47.877427"], ["updated_at", "2015-11-10 21:54:47.877427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:47.894783"], ["updated_at", "2015-11-10 21:54:47.894783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:47.908134"], ["updated_at", "2015-11-10 21:54:47.908134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e54e6c8b-871b-4800-bf0e-9e2e7e840ca1"], ["created_at", "2015-11-10 21:54:47.914058"], ["updated_at", "2015-11-10 21:54:47.914058"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e54e6c8b-871b-4800-bf0e-9e2e7e840ca1"], ["created_at", "2015-11-10 21:54:47.921236"], ["updated_at", "2015-11-10 21:54:47.921236"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:47.932299"], ["updated_at", "2015-11-10 21:54:47.932299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f832df46-c808-4b88-ad11-4223ff6a875f"], ["created_at", "2015-11-10 21:54:47.937226"], ["updated_at", "2015-11-10 21:54:47.937226"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:47.956286"], ["updated_at", "2015-11-10 21:54:47.956286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:47.970379"], ["updated_at", "2015-11-10 21:54:47.970379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:47.985165"], ["updated_at", "2015-11-10 21:54:47.985165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:48.002594"], ["updated_at", "2015-11-10 21:54:48.002594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:54:48.020405"], ["updated_at", "2015-11-10 21:54:48.020405"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:54:48.033024"], ["updated_at", "2015-11-10 21:54:48.033024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:54:48.051272"], ["updated_at", "2015-11-10 21:54:48.051272"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:54:48.076543"], ["updated_at", "2015-11-10 21:54:48.076543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.253178"], ["updated_at", "2015-11-10 21:55:27.253178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.275123"], ["updated_at", "2015-11-10 21:55:27.275123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.300455"], ["updated_at", "2015-11-10 21:55:27.300455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.322077"], ["updated_at", "2015-11-10 21:55:27.322077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.335625"], ["updated_at", "2015-11-10 21:55:27.335625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.351763"], ["updated_at", "2015-11-10 21:55:27.351763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e18891d2-678f-495e-a206-acc03a9fb35a"], ["created_at", "2015-11-10 21:55:27.357070"], ["updated_at", "2015-11-10 21:55:27.357070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e18891d2-678f-495e-a206-acc03a9fb35a"], ["created_at", "2015-11-10 21:55:27.362899"], ["updated_at", "2015-11-10 21:55:27.362899"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.373702"], ["updated_at", "2015-11-10 21:55:27.373702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4af7fa14-c59d-49ec-804c-a79e594a7294"], ["created_at", "2015-11-10 21:55:27.379272"], ["updated_at", "2015-11-10 21:55:27.379272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.393433"], ["updated_at", "2015-11-10 21:55:27.393433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.406687"], ["updated_at", "2015-11-10 21:55:27.406687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.421495"], ["updated_at", "2015-11-10 21:55:27.421495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.435253"], ["updated_at", "2015-11-10 21:55:27.435253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:55:27.447939"], ["updated_at", "2015-11-10 21:55:27.447939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:55:27.460352"], ["updated_at", "2015-11-10 21:55:27.460352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:55:27.476737"], ["updated_at", "2015-11-10 21:55:27.476737"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:55:27.500437"], ["updated_at", "2015-11-10 21:55:27.500437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.635436"], ["updated_at", "2015-11-10 21:58:25.635436"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.666253"], ["updated_at", "2015-11-10 21:58:25.666253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.690667"], ["updated_at", "2015-11-10 21:58:25.690667"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.710626"], ["updated_at", "2015-11-10 21:58:25.710626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.724612"], ["updated_at", "2015-11-10 21:58:25.724612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.742889"], ["updated_at", "2015-11-10 21:58:25.742889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "de1c91d3-a334-415c-afe6-73aa98370d71"], ["created_at", "2015-11-10 21:58:25.747769"], ["updated_at", "2015-11-10 21:58:25.747769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "de1c91d3-a334-415c-afe6-73aa98370d71"], ["created_at", "2015-11-10 21:58:25.752740"], ["updated_at", "2015-11-10 21:58:25.752740"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.764238"], ["updated_at", "2015-11-10 21:58:25.764238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "37abb401-4b59-4f55-8eb8-fc8c7a5fb7b2"], ["created_at", "2015-11-10 21:58:25.772740"], ["updated_at", "2015-11-10 21:58:25.772740"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.790549"], ["updated_at", "2015-11-10 21:58:25.790549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.809306"], ["updated_at", "2015-11-10 21:58:25.809306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.827696"], ["updated_at", "2015-11-10 21:58:25.827696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.842675"], ["updated_at", "2015-11-10 21:58:25.842675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 21:58:25.859399"], ["updated_at", "2015-11-10 21:58:25.859399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:58:25.871246"], ["updated_at", "2015-11-10 21:58:25.871246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:58:25.891502"], ["updated_at", "2015-11-10 21:58:25.891502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 21:58:25.915943"], ["updated_at", "2015-11-10 21:58:25.915943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.679032"], ["updated_at", "2015-11-10 23:54:49.679032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.730511"], ["updated_at", "2015-11-10 23:54:49.730511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.747123"], ["updated_at", "2015-11-10 23:54:49.747123"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.769941"], ["updated_at", "2015-11-10 23:54:49.769941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.784563"], ["updated_at", "2015-11-10 23:54:49.784563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.799700"], ["updated_at", "2015-11-10 23:54:49.799700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.814496"], ["updated_at", "2015-11-10 23:54:49.814496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.829827"], ["updated_at", "2015-11-10 23:54:49.829827"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.850270"], ["updated_at", "2015-11-10 23:54:49.850270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.867164"], ["updated_at", "2015-11-10 23:54:49.867164"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.882521"], ["updated_at", "2015-11-10 23:54:49.882521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-10 23:54:49.895773"], ["updated_at", "2015-11-10 23:54:49.895773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 23:54:49.909269"], ["updated_at", "2015-11-10 23:54:49.909269"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 23:54:49.937279"], ["updated_at", "2015-11-10 23:54:49.937279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"section_title\":{\"type\":\"string\"},\"section_text\":{\"type\":\"string\"}}}}}"], ["created_at", "2015-11-10 23:54:49.954316"], ["updated_at", "2015-11-10 23:54:49.954316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (22.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:12.702263"], ["updated_at", "2015-11-11 00:17:12.702263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:12.776205"], ["updated_at", "2015-11-11 00:17:12.776205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:12.795316"], ["updated_at", "2015-11-11 00:17:12.795316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:12.817494"], ["updated_at", "2015-11-11 00:17:12.817494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:12.836022"], ["updated_at", "2015-11-11 00:17:12.836022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:12.854517"], ["updated_at", "2015-11-11 00:17:12.854517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:12.871186"], ["updated_at", "2015-11-11 00:17:12.871186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:12.889449"], ["updated_at", "2015-11-11 00:17:12.889449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:12.907774"], ["updated_at", "2015-11-11 00:17:12.907774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') 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  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:34.138221"], ["updated_at", "2015-11-11 00:17:34.138221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:34.160865"], ["updated_at", "2015-11-11 00:17:34.160865"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:34.186010"], ["updated_at", "2015-11-11 00:17:34.186010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:34.205818"], ["updated_at", "2015-11-11 00:17:34.205818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:34.218609"], ["updated_at", "2015-11-11 00:17:34.218609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:34.236383"], ["updated_at", "2015-11-11 00:17:34.236383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4e1c5d84-cc17-4648-9591-024e83efa6ae"], ["created_at", "2015-11-11 00:17:34.241314"], ["updated_at", "2015-11-11 00:17:34.241314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4e1c5d84-cc17-4648-9591-024e83efa6ae"], ["created_at", "2015-11-11 00:17:34.246621"], ["updated_at", "2015-11-11 00:17:34.246621"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:34.257191"], ["updated_at", "2015-11-11 00:17:34.257191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7a8cccea-d371-42d8-a988-bd4b9cbdfef4"], ["created_at", "2015-11-11 00:17:34.264883"], ["updated_at", "2015-11-11 00:17:34.264883"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:34.280284"], ["updated_at", "2015-11-11 00:17:34.280284"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:34.294484"], ["updated_at", "2015-11-11 00:17:34.294484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:47.389104"], ["updated_at", "2015-11-11 00:17:47.389104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:47.419463"], ["updated_at", "2015-11-11 00:17:47.419463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:47.438893"], ["updated_at", "2015-11-11 00:17:47.438893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:47.456448"], ["updated_at", "2015-11-11 00:17:47.456448"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:47.471890"], ["updated_at", "2015-11-11 00:17:47.471890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:47.486682"], ["updated_at", "2015-11-11 00:17:47.486682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e844cd6b-3ae9-4a30-bc37-09bf6f5f631c"], ["created_at", "2015-11-11 00:17:47.492168"], ["updated_at", "2015-11-11 00:17:47.492168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e844cd6b-3ae9-4a30-bc37-09bf6f5f631c"], ["created_at", "2015-11-11 00:17:47.497407"], ["updated_at", "2015-11-11 00:17:47.497407"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:47.508734"], ["updated_at", "2015-11-11 00:17:47.508734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "00109c73-8665-44ac-861a-10474ca36644"], ["created_at", "2015-11-11 00:17:47.516227"], ["updated_at", "2015-11-11 00:17:47.516227"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:47.531527"], ["updated_at", "2015-11-11 00:17:47.531527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:17:47.549227"], ["updated_at", "2015-11-11 00:17:47.549227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (5.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:18:06.423510"], ["updated_at", "2015-11-11 00:18:06.423510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:18:06.449297"], ["updated_at", "2015-11-11 00:18:06.449297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:18:06.475236"], ["updated_at", "2015-11-11 00:18:06.475236"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:18:06.491731"], ["updated_at", "2015-11-11 00:18:06.491731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:18:06.505640"], ["updated_at", "2015-11-11 00:18:06.505640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:18:06.519349"], ["updated_at", "2015-11-11 00:18:06.519349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e8189da6-0717-4b15-8cf0-3e82b58430d2"], ["created_at", "2015-11-11 00:18:06.525991"], ["updated_at", "2015-11-11 00:18:06.525991"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e8189da6-0717-4b15-8cf0-3e82b58430d2"], ["created_at", "2015-11-11 00:18:06.532860"], ["updated_at", "2015-11-11 00:18:06.532860"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:18:06.543404"], ["updated_at", "2015-11-11 00:18:06.543404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "dd803a29-a9cc-4e86-af9e-1995600d03f8"], ["created_at", "2015-11-11 00:18:06.549102"], ["updated_at", "2015-11-11 00:18:06.549102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:18:06.566180"], ["updated_at", "2015-11-11 00:18:06.566180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:18:06.579534"], ["updated_at", "2015-11-11 00:18:06.579534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (5.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:19:10.388896"], ["updated_at", "2015-11-11 00:19:10.388896"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:19:10.416478"], ["updated_at", "2015-11-11 00:19:10.416478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:19:10.437971"], ["updated_at", "2015-11-11 00:19:10.437971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:19:10.455718"], ["updated_at", "2015-11-11 00:19:10.455718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:19:10.471384"], ["updated_at", "2015-11-11 00:19:10.471384"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:19:10.488120"], ["updated_at", "2015-11-11 00:19:10.488120"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4f8d9666-b91a-41fe-b428-0c4da9d1db80"], ["created_at", "2015-11-11 00:19:10.494795"], ["updated_at", "2015-11-11 00:19:10.494795"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4f8d9666-b91a-41fe-b428-0c4da9d1db80"], ["created_at", "2015-11-11 00:19:10.501410"], ["updated_at", "2015-11-11 00:19:10.501410"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:19:10.514131"], ["updated_at", "2015-11-11 00:19:10.514131"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "894cf94e-3e3b-4f17-a164-70966af4cdee"], ["created_at", "2015-11-11 00:19:10.520773"], ["updated_at", "2015-11-11 00:19:10.520773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:19:10.536517"], ["updated_at", "2015-11-11 00:19:10.536517"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:19:10.552764"], ["updated_at", "2015-11-11 00:19:10.552764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:18.475910"], ["updated_at", "2015-11-11 00:25:18.475910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:18.504599"], ["updated_at", "2015-11-11 00:25:18.504599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:18.526122"], ["updated_at", "2015-11-11 00:25:18.526122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:18.543581"], ["updated_at", "2015-11-11 00:25:18.543581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:18.557388"], ["updated_at", "2015-11-11 00:25:18.557388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:18.571327"], ["updated_at", "2015-11-11 00:25:18.571327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1ad46fde-0809-4c49-b74f-ba75e3f8296b"], ["created_at", "2015-11-11 00:25:18.577019"], ["updated_at", "2015-11-11 00:25:18.577019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1ad46fde-0809-4c49-b74f-ba75e3f8296b"], ["created_at", "2015-11-11 00:25:18.582384"], ["updated_at", "2015-11-11 00:25:18.582384"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:18.592874"], ["updated_at", "2015-11-11 00:25:18.592874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "247a948d-0d28-4127-99a5-d8d4c1a827dd"], ["created_at", "2015-11-11 00:25:18.598272"], ["updated_at", "2015-11-11 00:25:18.598272"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:18.613560"], ["updated_at", "2015-11-11 00:25:18.613560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:18.626120"], ["updated_at", "2015-11-11 00:25:18.626120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"string\"}"], ["created_at", "2015-11-11 00:25:18.640659"], ["updated_at", "2015-11-11 00:25:18.640659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:33.957307"], ["updated_at", "2015-11-11 00:25:33.957307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:33.982879"], ["updated_at", "2015-11-11 00:25:33.982879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:34.007270"], ["updated_at", "2015-11-11 00:25:34.007270"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:34.029397"], ["updated_at", "2015-11-11 00:25:34.029397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:34.043323"], ["updated_at", "2015-11-11 00:25:34.043323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:34.061438"], ["updated_at", "2015-11-11 00:25:34.061438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "203cc5c9-08e9-4d9a-b387-1cd777cd0504"], ["created_at", "2015-11-11 00:25:34.066834"], ["updated_at", "2015-11-11 00:25:34.066834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "203cc5c9-08e9-4d9a-b387-1cd777cd0504"], ["created_at", "2015-11-11 00:25:34.071190"], ["updated_at", "2015-11-11 00:25:34.071190"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:34.086494"], ["updated_at", "2015-11-11 00:25:34.086494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ded0b7c0-25eb-40b2-a481-3738d77cb9f9"], ["created_at", "2015-11-11 00:25:34.091153"], ["updated_at", "2015-11-11 00:25:34.091153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:34.103725"], ["updated_at", "2015-11-11 00:25:34.103725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:25:34.117649"], ["updated_at", "2015-11-11 00:25:34.117649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"string\"}"], ["created_at", "2015-11-11 00:25:34.133511"], ["updated_at", "2015-11-11 00:25:34.133511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:00.680422"], ["updated_at", "2015-11-11 00:26:00.680422"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:00.710423"], ["updated_at", "2015-11-11 00:26:00.710423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:00.736263"], ["updated_at", "2015-11-11 00:26:00.736263"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:00.754749"], ["updated_at", "2015-11-11 00:26:00.754749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:00.770156"], ["updated_at", "2015-11-11 00:26:00.770156"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:00.784610"], ["updated_at", "2015-11-11 00:26:00.784610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "bfdf0a66-d777-4f80-bfe5-11ab95198acd"], ["created_at", "2015-11-11 00:26:00.789602"], ["updated_at", "2015-11-11 00:26:00.789602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "bfdf0a66-d777-4f80-bfe5-11ab95198acd"], ["created_at", "2015-11-11 00:26:00.794365"], ["updated_at", "2015-11-11 00:26:00.794365"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:00.804371"], ["updated_at", "2015-11-11 00:26:00.804371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ab288a02-7fee-4812-87ba-1f61b03a2fa6"], ["created_at", "2015-11-11 00:26:00.808916"], ["updated_at", "2015-11-11 00:26:00.808916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:00.826479"], ["updated_at", "2015-11-11 00:26:00.826479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:00.839619"], ["updated_at", "2015-11-11 00:26:00.839619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"string\"}"], ["created_at", "2015-11-11 00:26:00.851274"], ["updated_at", "2015-11-11 00:26:00.851274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:54.493123"], ["updated_at", "2015-11-11 00:26:54.493123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:54.518409"], ["updated_at", "2015-11-11 00:26:54.518409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:54.539159"], ["updated_at", "2015-11-11 00:26:54.539159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:54.555651"], ["updated_at", "2015-11-11 00:26:54.555651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:54.568740"], ["updated_at", "2015-11-11 00:26:54.568740"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:54.582204"], ["updated_at", "2015-11-11 00:26:54.582204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4baab131-a63b-4853-926d-e0143d9cb240"], ["created_at", "2015-11-11 00:26:54.587667"], ["updated_at", "2015-11-11 00:26:54.587667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4baab131-a63b-4853-926d-e0143d9cb240"], ["created_at", "2015-11-11 00:26:54.593613"], ["updated_at", "2015-11-11 00:26:54.593613"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:54.604115"], ["updated_at", "2015-11-11 00:26:54.604115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "01ea92cf-e3e8-4343-8f8f-53a3f9604255"], ["created_at", "2015-11-11 00:26:54.609393"], ["updated_at", "2015-11-11 00:26:54.609393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:54.622586"], ["updated_at", "2015-11-11 00:26:54.622586"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:26:54.635947"], ["updated_at", "2015-11-11 00:26:54.635947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"string\"}"], ["created_at", "2015-11-11 00:26:54.649053"], ["updated_at", "2015-11-11 00:26:54.649053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:12.610651"], ["updated_at", "2015-11-11 00:27:12.610651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.2ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:12.639075"], ["updated_at", "2015-11-11 00:27:12.639075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:12.661910"], ["updated_at", "2015-11-11 00:27:12.661910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:12.677855"], ["updated_at", "2015-11-11 00:27:12.677855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:12.691337"], ["updated_at", "2015-11-11 00:27:12.691337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:12.704199"], ["updated_at", "2015-11-11 00:27:12.704199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5549c6bd-64cb-4dd8-a057-3c0fd97c49a2"], ["created_at", "2015-11-11 00:27:12.709212"], ["updated_at", "2015-11-11 00:27:12.709212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5549c6bd-64cb-4dd8-a057-3c0fd97c49a2"], ["created_at", "2015-11-11 00:27:12.714224"], ["updated_at", "2015-11-11 00:27:12.714224"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:12.724276"], ["updated_at", "2015-11-11 00:27:12.724276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "70886ed9-857b-45c3-bb86-a9a99d804652"], ["created_at", "2015-11-11 00:27:12.729024"], ["updated_at", "2015-11-11 00:27:12.729024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:12.741713"], ["updated_at", "2015-11-11 00:27:12.741713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:12.758993"], ["updated_at", "2015-11-11 00:27:12.758993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"string\"}"], ["created_at", "2015-11-11 00:27:12.772815"], ["updated_at", "2015-11-11 00:27:12.772815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:21.016438"], ["updated_at", "2015-11-11 00:27:21.016438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:21.040207"], ["updated_at", "2015-11-11 00:27:21.040207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:21.058751"], ["updated_at", "2015-11-11 00:27:21.058751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:21.076226"], ["updated_at", "2015-11-11 00:27:21.076226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:21.091985"], ["updated_at", "2015-11-11 00:27:21.091985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:21.110330"], ["updated_at", "2015-11-11 00:27:21.110330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e4744653-b0da-42b5-a7b3-14daa99c3bbd"], ["created_at", "2015-11-11 00:27:21.116438"], ["updated_at", "2015-11-11 00:27:21.116438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e4744653-b0da-42b5-a7b3-14daa99c3bbd"], ["created_at", "2015-11-11 00:27:21.123226"], ["updated_at", "2015-11-11 00:27:21.123226"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:21.135573"], ["updated_at", "2015-11-11 00:27:21.135573"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "395204e7-5120-4f42-9c90-5d4ec83c011f"], ["created_at", "2015-11-11 00:27:21.141551"], ["updated_at", "2015-11-11 00:27:21.141551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:21.156107"], ["updated_at", "2015-11-11 00:27:21.156107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:27:21.169852"], ["updated_at", "2015-11-11 00:27:21.169852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"string\"}"], ["created_at", "2015-11-11 00:27:21.182940"], ["updated_at", "2015-11-11 00:27:21.182940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:28:23.222854"], ["updated_at", "2015-11-11 00:28:23.222854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:28:23.243961"], ["updated_at", "2015-11-11 00:28:23.243961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:28:23.263069"], ["updated_at", "2015-11-11 00:28:23.263069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:28:23.286232"], ["updated_at", "2015-11-11 00:28:23.286232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:28:23.300302"], ["updated_at", "2015-11-11 00:28:23.300302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:28:23.316715"], ["updated_at", "2015-11-11 00:28:23.316715"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "036092d4-eafa-40de-ae55-ef6b9b4ab047"], ["created_at", "2015-11-11 00:28:23.325757"], ["updated_at", "2015-11-11 00:28:23.325757"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "036092d4-eafa-40de-ae55-ef6b9b4ab047"], ["created_at", "2015-11-11 00:28:23.332944"], ["updated_at", "2015-11-11 00:28:23.332944"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:28:23.344379"], ["updated_at", "2015-11-11 00:28:23.344379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3f1538c6-1c51-4c17-a351-3215489eac33"], ["created_at", "2015-11-11 00:28:23.352014"], ["updated_at", "2015-11-11 00:28:23.352014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:28:23.366981"], ["updated_at", "2015-11-11 00:28:23.366981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:28:23.381786"], ["updated_at", "2015-11-11 00:28:23.381786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"string\"}"], ["created_at", "2015-11-11 00:28:23.394066"], ["updated_at", "2015-11-11 00:28:23.394066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Strain::Variant Load (1.6ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC LIMIT 1 Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC LIMIT 1 Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC LIMIT 1 Strain::Article Exists (2.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.076698"], ["updated_at", "2015-11-11 00:56:44.076698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.099276"], ["updated_at", "2015-11-11 00:56:44.099276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.121905"], ["updated_at", "2015-11-11 00:56:44.121905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.144231"], ["updated_at", "2015-11-11 00:56:44.144231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.162743"], ["updated_at", "2015-11-11 00:56:44.162743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.177145"], ["updated_at", "2015-11-11 00:56:44.177145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6ec6785a-a502-433c-b03d-ff7892333c0b"], ["created_at", "2015-11-11 00:56:44.184315"], ["updated_at", "2015-11-11 00:56:44.184315"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6ec6785a-a502-433c-b03d-ff7892333c0b"], ["created_at", "2015-11-11 00:56:44.191957"], ["updated_at", "2015-11-11 00:56:44.191957"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.204720"], ["updated_at", "2015-11-11 00:56:44.204720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "65929886-393b-4ee8-a8a0-f3b3c65417b9"], ["created_at", "2015-11-11 00:56:44.209750"], ["updated_at", "2015-11-11 00:56:44.209750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.225429"], ["updated_at", "2015-11-11 00:56:44.225429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.238616"], ["updated_at", "2015-11-11 00:56:44.238616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.288950"], ["updated_at", "2015-11-11 00:56:44.288950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.291895"], ["updated_at", "2015-11-11 00:56:44.291895"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 00:56:44.302402"], ["updated_at", "2015-11-11 00:56:44.302402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:00:48.111055"], ["updated_at", "2015-11-11 01:00:48.111055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:00:48.121054"], ["updated_at", "2015-11-11 01:00:48.121054"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:00:48.132486"], ["updated_at", "2015-11-11 01:00:48.132486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:01:37.195495"], ["updated_at", "2015-11-11 01:01:37.195495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:01:37.201112"], ["updated_at", "2015-11-11 01:01:37.201112"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:01:37.216117"], ["updated_at", "2015-11-11 01:01:37.216117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:01:52.181831"], ["updated_at", "2015-11-11 01:01:52.181831"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:01:52.191649"], ["updated_at", "2015-11-11 01:01:52.191649"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:01:52.203437"], ["updated_at", "2015-11-11 01:01:52.203437"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:02:28.244490"], ["updated_at", "2015-11-11 01:02:28.244490"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:02:28.253978"], ["updated_at", "2015-11-11 01:02:28.253978"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:02:28.265769"], ["updated_at", "2015-11-11 01:02:28.265769"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (6.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:06:17.045898"], ["updated_at", "2015-11-11 01:06:17.045898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:06:17.057716"], ["updated_at", "2015-11-11 01:06:17.057716"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:06:17.069809"], ["updated_at", "2015-11-11 01:06:17.069809"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:06:45.771107"], ["updated_at", "2015-11-11 01:06:45.771107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:06:45.781006"], ["updated_at", "2015-11-11 01:06:45.781006"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:06:45.792439"], ["updated_at", "2015-11-11 01:06:45.792439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:07:03.888663"], ["updated_at", "2015-11-11 01:07:03.888663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:07:03.895174"], ["updated_at", "2015-11-11 01:07:03.895174"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:07:03.905385"], ["updated_at", "2015-11-11 01:07:03.905385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:07:11.295355"], ["updated_at", "2015-11-11 01:07:11.295355"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:07:11.305499"], ["updated_at", "2015-11-11 01:07:11.305499"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (7.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:07:11.316999"], ["updated_at", "2015-11-11 01:07:11.316999"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:07:20.126061"], ["updated_at", "2015-11-11 01:07:20.126061"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:07:20.133384"], ["updated_at", "2015-11-11 01:07:20.133384"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:07:20.144488"], ["updated_at", "2015-11-11 01:07:20.144488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:12:04.579532"], ["updated_at", "2015-11-11 01:12:04.579532"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:12:04.589970"], ["updated_at", "2015-11-11 01:12:04.589970"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:12:04.600462"], ["updated_at", "2015-11-11 01:12:04.600462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:13:54.002019"], ["updated_at", "2015-11-11 01:13:54.002019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:13:54.012562"], ["updated_at", "2015-11-11 01:13:54.012562"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:13:54.023985"], ["updated_at", "2015-11-11 01:13:54.023985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:13:58.963033"], ["updated_at", "2015-11-11 01:13:58.963033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:13:58.969081"], ["updated_at", "2015-11-11 01:13:58.969081"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:13:58.981060"], ["updated_at", "2015-11-11 01:13:58.981060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:14:53.332578"], ["updated_at", "2015-11-11 01:14:53.332578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:14:53.342317"], ["updated_at", "2015-11-11 01:14:53.342317"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:14:53.355497"], ["updated_at", "2015-11-11 01:14:53.355497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:15:46.706886"], ["updated_at", "2015-11-11 01:15:46.706886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:15:46.715567"], ["updated_at", "2015-11-11 01:15:46.715567"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:15:46.726898"], ["updated_at", "2015-11-11 01:15:46.726898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:16:00.066981"], ["updated_at", "2015-11-11 01:16:00.066981"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:16:00.076819"], ["updated_at", "2015-11-11 01:16:00.076819"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:16:00.088579"], ["updated_at", "2015-11-11 01:16:00.088579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:16:25.914819"], ["updated_at", "2015-11-11 01:16:25.914819"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:16:25.925220"], ["updated_at", "2015-11-11 01:16:25.925220"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:16:25.936237"], ["updated_at", "2015-11-11 01:16:25.936237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:16:55.357098"], ["updated_at", "2015-11-11 01:16:55.357098"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:16:55.364228"], ["updated_at", "2015-11-11 01:16:55.364228"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:16:55.376384"], ["updated_at", "2015-11-11 01:16:55.376384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:17:07.904204"], ["updated_at", "2015-11-11 01:17:07.904204"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:17:07.913726"], ["updated_at", "2015-11-11 01:17:07.913726"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:17:07.925082"], ["updated_at", "2015-11-11 01:17:07.925082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (5.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:19:06.115549"], ["updated_at", "2015-11-11 01:19:06.115549"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:19:06.127751"], ["updated_at", "2015-11-11 01:19:06.127751"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:19:06.139504"], ["updated_at", "2015-11-11 01:19:06.139504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (5.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:29:54.063450"], ["updated_at", "2015-11-11 01:29:54.063450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:29:54.074290"], ["updated_at", "2015-11-11 01:29:54.074290"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:29:54.085744"], ["updated_at", "2015-11-11 01:29:54.085744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:30:14.406157"], ["updated_at", "2015-11-11 01:30:14.406157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:30:14.416171"], ["updated_at", "2015-11-11 01:30:14.416171"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:30:14.427199"], ["updated_at", "2015-11-11 01:30:14.427199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:30:25.713708"], ["updated_at", "2015-11-11 01:30:25.713708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:30:25.720580"], ["updated_at", "2015-11-11 01:30:25.720580"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:30:25.731255"], ["updated_at", "2015-11-11 01:30:25.731255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:30:39.801136"], ["updated_at", "2015-11-11 01:30:39.801136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:30:39.809040"], ["updated_at", "2015-11-11 01:30:39.809040"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:30:39.819622"], ["updated_at", "2015-11-11 01:30:39.819622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:31:39.544326"], ["updated_at", "2015-11-11 01:31:39.544326"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:31:39.553767"], ["updated_at", "2015-11-11 01:31:39.553767"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:31:39.563830"], ["updated_at", "2015-11-11 01:31:39.563830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (5.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:37:36.667980"], ["updated_at", "2015-11-11 01:37:36.667980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:37:36.678871"], ["updated_at", "2015-11-11 01:37:36.678871"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:37:36.690729"], ["updated_at", "2015-11-11 01:37:36.690729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:08.334853"], ["updated_at", "2015-11-11 01:38:08.334853"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:08.345483"], ["updated_at", "2015-11-11 01:38:08.345483"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:08.356933"], ["updated_at", "2015-11-11 01:38:08.356933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.297476"], ["updated_at", "2015-11-11 01:38:20.297476"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.321066"], ["updated_at", "2015-11-11 01:38:20.321066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.342959"], ["updated_at", "2015-11-11 01:38:20.342959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.361847"], ["updated_at", "2015-11-11 01:38:20.361847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.376081"], ["updated_at", "2015-11-11 01:38:20.376081"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.395711"], ["updated_at", "2015-11-11 01:38:20.395711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0740f996-ccd3-4b26-9eab-4dadfec34f44"], ["created_at", "2015-11-11 01:38:20.401654"], ["updated_at", "2015-11-11 01:38:20.401654"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0740f996-ccd3-4b26-9eab-4dadfec34f44"], ["created_at", "2015-11-11 01:38:20.408110"], ["updated_at", "2015-11-11 01:38:20.408110"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.419078"], ["updated_at", "2015-11-11 01:38:20.419078"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "af433aea-14bc-4318-ad7d-2cfb6a3d0558"], ["created_at", "2015-11-11 01:38:20.427966"], ["updated_at", "2015-11-11 01:38:20.427966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.442069"], ["updated_at", "2015-11-11 01:38:20.442069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.461600"], ["updated_at", "2015-11-11 01:38:20.461600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.537440"], ["updated_at", "2015-11-11 01:38:20.537440"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.541589"], ["updated_at", "2015-11-11 01:38:20.541589"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.553281"], ["updated_at", "2015-11-11 01:38:20.553281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.589071"], ["updated_at", "2015-11-11 01:38:20.589071"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "482d0f05-7b1b-4ecf-812c-86dca919544f"], ["created_at", "2015-11-11 01:38:20.594734"], ["updated_at", "2015-11-11 01:38:20.594734"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-10 20:38:20 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (1.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.642774"], ["updated_at", "2015-11-11 01:38:20.642774"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6630c7be-74fd-49db-b22c-63049b6617b3"], ["created_at", "2015-11-11 01:38:20.648822"], ["updated_at", "2015-11-11 01:38:20.648822"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/39702f0a-fa0a-476b-92f0-974fe7195adb" for 127.0.0.1 at 2015-11-10 20:38:20 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"39702f0a-fa0a-476b-92f0-974fe7195adb"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "39702f0a-fa0a-476b-92f0-974fe7195adb"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6630c7be-74fd-49db-b22c-63049b6617b3"]] Completed 200 OK in 14ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.687278"], ["updated_at", "2015-11-11 01:38:20.687278"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-10 20:38:20 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"6b50e0ad-ac48-46f4-b23e-cd0c621ddb39"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6b50e0ad-ac48-46f4-b23e-cd0c621ddb39"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.735939"], ["updated_at", "2015-11-11 01:38:20.735939"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a15c41c7-fbf6-4560-a6b2-27198fd0a1d2"], ["created_at", "2015-11-11 01:38:20.743093"], ["updated_at", "2015-11-11 01:38:20.743093"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/51b38c5f-81c6-4032-a7d7-6b59e5d63d9d" for 127.0.0.1 at 2015-11-10 20:38:20 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"51b38c5f-81c6-4032-a7d7-6b59e5d63d9d"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "51b38c5f-81c6-4032-a7d7-6b59e5d63d9d"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "51b38c5f-81c6-4032-a7d7-6b59e5d63d9d"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.763926"], ["updated_at", "2015-11-11 01:38:20.763926"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9d8f3163-0fba-41b9-be4e-60a1e7f7a593"], ["created_at", "2015-11-11 01:38:20.769883"], ["updated_at", "2015-11-11 01:38:20.769883"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/e61665ee-4513-4d60-ae61-d44ad6dd57c0" for 127.0.0.1 at 2015-11-10 20:38:20 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"e61665ee-4513-4d60-ae61-d44ad6dd57c0", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"e61665ee-4513-4d60-ae61-d44ad6dd57c0"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e61665ee-4513-4d60-ae61-d44ad6dd57c0"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9d8f3163-0fba-41b9-be4e-60a1e7f7a593"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'e61665ee-4513-4d60-ae61-d44ad6dd57c0') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'e61665ee-4513-4d60-ae61-d44ad6dd57c0') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-11 01:38:20.782433"], ["id", "e61665ee-4513-4d60-ae61-d44ad6dd57c0"]]  (0.5ms) COMMIT Completed 200 OK in 14ms (Views: 0.7ms | ActiveRecord: 2.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "e61665ee-4513-4d60-ae61-d44ad6dd57c0"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.801728"], ["updated_at", "2015-11-11 01:38:20.801728"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-10 20:38:20 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.827485"], ["updated_at", "2015-11-11 01:38:20.827485"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/b66caaff-4f51-45c9-8a9c-3317e97e0b0b" for 127.0.0.1 at 2015-11-10 20:38:20 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"b66caaff-4f51-45c9-8a9c-3317e97e0b0b"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b66caaff-4f51-45c9-8a9c-3317e97e0b0b"]] Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-10 20:38:20 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-11 01:38:20.856956"], ["updated_at", "2015-11-11 01:38:20.856956"]]  (0.6ms) COMMIT Completed 201 Created in 18ms (Views: 0.6ms | ActiveRecord: 1.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.877617"], ["updated_at", "2015-11-11 01:38:20.877617"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/babc2cd2-59d4-458e-b810-24a241eca024" for 127.0.0.1 at 2015-11-10 20:38:20 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"babc2cd2-59d4-458e-b810-24a241eca024"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "babc2cd2-59d4-458e-b810-24a241eca024"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "babc2cd2-59d4-458e-b810-24a241eca024"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:20.898837"], ["updated_at", "2015-11-11 01:38:20.898837"]]  (0.9ms) COMMIT Started PATCH "/jsonapi/variants/4be77e80-39bc-45f9-85a0-341afe335c82" for 127.0.0.1 at 2015-11-10 20:38:20 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"4be77e80-39bc-45f9-85a0-341afe335c82", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"4be77e80-39bc-45f9-85a0-341afe335c82"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "4be77e80-39bc-45f9-85a0-341afe335c82"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '4be77e80-39bc-45f9-85a0-341afe335c82') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '4be77e80-39bc-45f9-85a0-341afe335c82') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-11 01:38:20.919164"], ["id", "4be77e80-39bc-45f9-85a0-341afe335c82"]]  (0.5ms) COMMIT Completed 200 OK in 20ms (Views: 0.6ms | ActiveRecord: 2.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4be77e80-39bc-45f9-85a0-341afe335c82"]]  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.071940"], ["updated_at", "2015-11-11 01:38:39.071940"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.095485"], ["updated_at", "2015-11-11 01:38:39.095485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.115106"], ["updated_at", "2015-11-11 01:38:39.115106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.137717"], ["updated_at", "2015-11-11 01:38:39.137717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.152461"], ["updated_at", "2015-11-11 01:38:39.152461"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.173767"], ["updated_at", "2015-11-11 01:38:39.173767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3acd48db-1f34-4504-ba90-0df11e81b5b0"], ["created_at", "2015-11-11 01:38:39.180301"], ["updated_at", "2015-11-11 01:38:39.180301"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3acd48db-1f34-4504-ba90-0df11e81b5b0"], ["created_at", "2015-11-11 01:38:39.186399"], ["updated_at", "2015-11-11 01:38:39.186399"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.203204"], ["updated_at", "2015-11-11 01:38:39.203204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "12ca271f-5870-43b0-b940-fe2847bdd89f"], ["created_at", "2015-11-11 01:38:39.208488"], ["updated_at", "2015-11-11 01:38:39.208488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.221661"], ["updated_at", "2015-11-11 01:38:39.221661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.239937"], ["updated_at", "2015-11-11 01:38:39.239937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.294230"], ["updated_at", "2015-11-11 01:38:39.294230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.297431"], ["updated_at", "2015-11-11 01:38:39.297431"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.320645"], ["updated_at", "2015-11-11 01:38:39.320645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.355891"], ["updated_at", "2015-11-11 01:38:39.355891"]]  (3.2ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "95c1c597-e7f6-4499-8bdc-226ae082d723"], ["created_at", "2015-11-11 01:38:39.364505"], ["updated_at", "2015-11-11 01:38:39.364505"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-10 20:38:39 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.406725"], ["updated_at", "2015-11-11 01:38:39.406725"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7dd5e5f8-73bd-49da-80fd-612546540cf2"], ["created_at", "2015-11-11 01:38:39.411834"], ["updated_at", "2015-11-11 01:38:39.411834"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/bf3b67ae-fc4c-4565-967a-90756f2568b8" for 127.0.0.1 at 2015-11-10 20:38:39 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"bf3b67ae-fc4c-4565-967a-90756f2568b8"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "bf3b67ae-fc4c-4565-967a-90756f2568b8"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "7dd5e5f8-73bd-49da-80fd-612546540cf2"]] Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 0.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.445286"], ["updated_at", "2015-11-11 01:38:39.445286"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-10 20:38:39 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"bdc98246-5d3d-4890-8094-506dba1129d5"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "bdc98246-5d3d-4890-8094-506dba1129d5"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.482032"], ["updated_at", "2015-11-11 01:38:39.482032"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e156005e-89e4-4865-a2e7-72088044988e"], ["created_at", "2015-11-11 01:38:39.488002"], ["updated_at", "2015-11-11 01:38:39.488002"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/cc86454c-b0f5-4d72-b18d-94eb1ad2dfbe" for 127.0.0.1 at 2015-11-10 20:38:39 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"cc86454c-b0f5-4d72-b18d-94eb1ad2dfbe"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "cc86454c-b0f5-4d72-b18d-94eb1ad2dfbe"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "cc86454c-b0f5-4d72-b18d-94eb1ad2dfbe"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.507492"], ["updated_at", "2015-11-11 01:38:39.507492"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b6b7c925-6b01-4db8-bfe4-2369b638b26a"], ["created_at", "2015-11-11 01:38:39.514383"], ["updated_at", "2015-11-11 01:38:39.514383"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/cf8cc484-a3c9-44ce-b68c-4d6e1c5f7cd7" for 127.0.0.1 at 2015-11-10 20:38:39 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"cf8cc484-a3c9-44ce-b68c-4d6e1c5f7cd7", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"cf8cc484-a3c9-44ce-b68c-4d6e1c5f7cd7"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "cf8cc484-a3c9-44ce-b68c-4d6e1c5f7cd7"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b6b7c925-6b01-4db8-bfe4-2369b638b26a"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'cf8cc484-a3c9-44ce-b68c-4d6e1c5f7cd7') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'cf8cc484-a3c9-44ce-b68c-4d6e1c5f7cd7') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-11 01:38:39.527267"], ["id", "cf8cc484-a3c9-44ce-b68c-4d6e1c5f7cd7"]]  (0.4ms) COMMIT Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "cf8cc484-a3c9-44ce-b68c-4d6e1c5f7cd7"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.547656"], ["updated_at", "2015-11-11 01:38:39.547656"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-10 20:38:39 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.566839"], ["updated_at", "2015-11-11 01:38:39.566839"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/e76ee272-d80d-4cba-9231-10a571e56620" for 127.0.0.1 at 2015-11-10 20:38:39 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"e76ee272-d80d-4cba-9231-10a571e56620"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "e76ee272-d80d-4cba-9231-10a571e56620"]] Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-10 20:38:39 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-11 01:38:39.597584"], ["updated_at", "2015-11-11 01:38:39.597584"]]  (0.4ms) COMMIT Completed 201 Created in 16ms (Views: 0.3ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.612954"], ["updated_at", "2015-11-11 01:38:39.612954"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/9c4fe459-bb0c-4596-8694-d532c2e8c05a" for 127.0.0.1 at 2015-11-10 20:38:39 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"9c4fe459-bb0c-4596-8694-d532c2e8c05a"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "9c4fe459-bb0c-4596-8694-d532c2e8c05a"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "9c4fe459-bb0c-4596-8694-d532c2e8c05a"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:38:39.633520"], ["updated_at", "2015-11-11 01:38:39.633520"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/34c424e6-067d-4a7e-8f98-274972f346f3" for 127.0.0.1 at 2015-11-10 20:38:39 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"34c424e6-067d-4a7e-8f98-274972f346f3", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"34c424e6-067d-4a7e-8f98-274972f346f3"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "34c424e6-067d-4a7e-8f98-274972f346f3"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '34c424e6-067d-4a7e-8f98-274972f346f3') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '34c424e6-067d-4a7e-8f98-274972f346f3') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-11 01:38:39.653796"], ["id", "34c424e6-067d-4a7e-8f98-274972f346f3"]]  (0.7ms) COMMIT Completed 200 OK in 23ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "34c424e6-067d-4a7e-8f98-274972f346f3"]]  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:01.566401"], ["updated_at", "2015-11-11 01:39:01.566401"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:01.575966"], ["updated_at", "2015-11-11 01:39:01.575966"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:01.587048"], ["updated_at", "2015-11-11 01:39:01.587048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:11.909506"], ["updated_at", "2015-11-11 01:39:11.909506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:11.916523"], ["updated_at", "2015-11-11 01:39:11.916523"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:11.928069"], ["updated_at", "2015-11-11 01:39:11.928069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:26.990764"], ["updated_at", "2015-11-11 01:39:26.990764"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:27.001207"], ["updated_at", "2015-11-11 01:39:27.001207"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:27.012935"], ["updated_at", "2015-11-11 01:39:27.012935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:45.159895"], ["updated_at", "2015-11-11 01:39:45.159895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:45.173634"], ["updated_at", "2015-11-11 01:39:45.173634"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 01:39:45.186871"], ["updated_at", "2015-11-11 01:39:45.186871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:21.275632"], ["updated_at", "2015-11-11 02:38:21.275632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:21.302421"], ["updated_at", "2015-11-11 02:38:21.302421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:21.328952"], ["updated_at", "2015-11-11 02:38:21.328952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:21.348762"], ["updated_at", "2015-11-11 02:38:21.348762"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:21.367786"], ["updated_at", "2015-11-11 02:38:21.367786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:21.387482"], ["updated_at", "2015-11-11 02:38:21.387482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "37ca4f13-c7c1-4c77-b240-317d4149054a"], ["created_at", "2015-11-11 02:38:21.392962"], ["updated_at", "2015-11-11 02:38:21.392962"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "37ca4f13-c7c1-4c77-b240-317d4149054a"], ["created_at", "2015-11-11 02:38:21.401716"], ["updated_at", "2015-11-11 02:38:21.401716"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:21.415706"], ["updated_at", "2015-11-11 02:38:21.415706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5c88d4f6-fc48-452f-b00a-b5b8935ffbf1"], ["created_at", "2015-11-11 02:38:21.421453"], ["updated_at", "2015-11-11 02:38:21.421453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:21.439648"], ["updated_at", "2015-11-11 02:38:21.439648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:21.462353"], ["updated_at", "2015-11-11 02:38:21.462353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:26.334137"], ["updated_at", "2015-11-11 02:38:26.334137"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:26.345078"], ["updated_at", "2015-11-11 02:38:26.345078"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 02:38:26.359056"], ["updated_at", "2015-11-11 02:38:26.359056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (20.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:13.647118"], ["updated_at", "2015-11-11 03:32:13.647118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:13.689934"], ["updated_at", "2015-11-11 03:32:13.689934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:13.712992"], ["updated_at", "2015-11-11 03:32:13.712992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:13.736960"], ["updated_at", "2015-11-11 03:32:13.736960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:13.752687"], ["updated_at", "2015-11-11 03:32:13.752687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:13.772253"], ["updated_at", "2015-11-11 03:32:13.772253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "310b24d5-12d0-4cda-b949-32d07c6d5066"], ["created_at", "2015-11-11 03:32:13.777680"], ["updated_at", "2015-11-11 03:32:13.777680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "310b24d5-12d0-4cda-b949-32d07c6d5066"], ["created_at", "2015-11-11 03:32:13.783134"], ["updated_at", "2015-11-11 03:32:13.783134"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:13.799768"], ["updated_at", "2015-11-11 03:32:13.799768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cb6789aa-47a3-48fc-aea2-36e2175e4ed6"], ["created_at", "2015-11-11 03:32:13.805045"], ["updated_at", "2015-11-11 03:32:13.805045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:13.824748"], ["updated_at", "2015-11-11 03:32:13.824748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:13.842834"], ["updated_at", "2015-11-11 03:32:13.842834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default\"}}}"], ["created_at", "2015-11-11 03:32:13.859682"], ["updated_at", "2015-11-11 03:32:13.859682"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "89b00051-8296-4c95-8571-389e713c6695"], ["created_at", "2015-11-11 03:32:13.861695"], ["updated_at", "2015-11-11 03:32:13.861695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:19.369196"], ["updated_at", "2015-11-11 03:32:19.369196"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:19.396826"], ["updated_at", "2015-11-11 03:32:19.396826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:19.417532"], ["updated_at", "2015-11-11 03:32:19.417532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:19.436990"], ["updated_at", "2015-11-11 03:32:19.436990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:19.452483"], ["updated_at", "2015-11-11 03:32:19.452483"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:19.467787"], ["updated_at", "2015-11-11 03:32:19.467787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1b3928f6-de06-4e23-8064-e5b2560ecbba"], ["created_at", "2015-11-11 03:32:19.473978"], ["updated_at", "2015-11-11 03:32:19.473978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1b3928f6-de06-4e23-8064-e5b2560ecbba"], ["created_at", "2015-11-11 03:32:19.479119"], ["updated_at", "2015-11-11 03:32:19.479119"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:19.490496"], ["updated_at", "2015-11-11 03:32:19.490496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b73f7558-fd51-404a-9143-f5fde14b81c0"], ["created_at", "2015-11-11 03:32:19.495689"], ["updated_at", "2015-11-11 03:32:19.495689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:19.510588"], ["updated_at", "2015-11-11 03:32:19.510588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:32:19.528148"], ["updated_at", "2015-11-11 03:32:19.528148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (1.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:32:19.548637"], ["updated_at", "2015-11-11 03:32:19.548637"]] SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ee3d122f-cc26-49f1-acc7-e6ee5ee298f3"], ["created_at", "2015-11-11 03:32:19.551568"], ["updated_at", "2015-11-11 03:32:19.551568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:36:58.907478"], ["updated_at", "2015-11-11 03:36:58.907478"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:36:58.935198"], ["updated_at", "2015-11-11 03:36:58.935198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:36:58.958700"], ["updated_at", "2015-11-11 03:36:58.958700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:36:58.978105"], ["updated_at", "2015-11-11 03:36:58.978105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:36:58.991298"], ["updated_at", "2015-11-11 03:36:58.991298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:36:59.004330"], ["updated_at", "2015-11-11 03:36:59.004330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5736df7e-e3fa-49e2-b611-4b67a3fa5d1b"], ["created_at", "2015-11-11 03:36:59.009003"], ["updated_at", "2015-11-11 03:36:59.009003"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5736df7e-e3fa-49e2-b611-4b67a3fa5d1b"], ["created_at", "2015-11-11 03:36:59.017345"], ["updated_at", "2015-11-11 03:36:59.017345"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:36:59.032106"], ["updated_at", "2015-11-11 03:36:59.032106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f6c1d8e0-841a-43d2-b7ac-f52b3e4d813c"], ["created_at", "2015-11-11 03:36:59.038210"], ["updated_at", "2015-11-11 03:36:59.038210"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:36:59.058016"], ["updated_at", "2015-11-11 03:36:59.058016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:36:59.071216"], ["updated_at", "2015-11-11 03:36:59.071216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:36:59.089545"], ["updated_at", "2015-11-11 03:36:59.089545"]] SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b068469a-743d-403e-bfa2-c7f7b5501fe4"], ["created_at", "2015-11-11 03:36:59.092089"], ["updated_at", "2015-11-11 03:36:59.092089"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:16.734717"], ["updated_at", "2015-11-11 03:37:16.734717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:16.741885"], ["updated_at", "2015-11-11 03:37:16.741885"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:16.753736"], ["updated_at", "2015-11-11 03:37:16.753736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:22.074198"], ["updated_at", "2015-11-11 03:37:22.074198"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:22.083209"], ["updated_at", "2015-11-11 03:37:22.083209"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:22.096764"], ["updated_at", "2015-11-11 03:37:22.096764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:25.786317"], ["updated_at", "2015-11-11 03:37:25.786317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:25.809485"], ["updated_at", "2015-11-11 03:37:25.809485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:25.832425"], ["updated_at", "2015-11-11 03:37:25.832425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:25.847715"], ["updated_at", "2015-11-11 03:37:25.847715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:25.866130"], ["updated_at", "2015-11-11 03:37:25.866130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:25.879939"], ["updated_at", "2015-11-11 03:37:25.879939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a608c5fd-8c58-4111-9003-96f0a18f458c"], ["created_at", "2015-11-11 03:37:25.884729"], ["updated_at", "2015-11-11 03:37:25.884729"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a608c5fd-8c58-4111-9003-96f0a18f458c"], ["created_at", "2015-11-11 03:37:25.892947"], ["updated_at", "2015-11-11 03:37:25.892947"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:25.906758"], ["updated_at", "2015-11-11 03:37:25.906758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5cdd7e00-5276-418c-b3f1-98ebc7de6a23"], ["created_at", "2015-11-11 03:37:25.912094"], ["updated_at", "2015-11-11 03:37:25.912094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:25.925635"], ["updated_at", "2015-11-11 03:37:25.925635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:25.939686"], ["updated_at", "2015-11-11 03:37:25.939686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:37:25.955446"], ["updated_at", "2015-11-11 03:37:25.955446"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0d20cde2-6349-40ad-8f81-6d508bfe2ae9"], ["created_at", "2015-11-11 03:37:25.957377"], ["updated_at", "2015-11-11 03:37:25.957377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:42.740520"], ["updated_at", "2015-11-11 03:37:42.740520"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:42.766197"], ["updated_at", "2015-11-11 03:37:42.766197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:42.790595"], ["updated_at", "2015-11-11 03:37:42.790595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:42.806949"], ["updated_at", "2015-11-11 03:37:42.806949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:42.825976"], ["updated_at", "2015-11-11 03:37:42.825976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:42.841310"], ["updated_at", "2015-11-11 03:37:42.841310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7524a8ff-a6da-4cb8-8e7a-3383d9505d5f"], ["created_at", "2015-11-11 03:37:42.846346"], ["updated_at", "2015-11-11 03:37:42.846346"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7524a8ff-a6da-4cb8-8e7a-3383d9505d5f"], ["created_at", "2015-11-11 03:37:42.853989"], ["updated_at", "2015-11-11 03:37:42.853989"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:42.869001"], ["updated_at", "2015-11-11 03:37:42.869001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e89406a2-a5f7-41af-a8c0-bd141429c1c3"], ["created_at", "2015-11-11 03:37:42.874050"], ["updated_at", "2015-11-11 03:37:42.874050"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:42.892869"], ["updated_at", "2015-11-11 03:37:42.892869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:37:42.914708"], ["updated_at", "2015-11-11 03:37:42.914708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:37:42.933792"], ["updated_at", "2015-11-11 03:37:42.933792"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c333a32a-85d1-47fc-94ab-1e859581d1e4"], ["created_at", "2015-11-11 03:37:42.935692"], ["updated_at", "2015-11-11 03:37:42.935692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:38:16.863465"], ["updated_at", "2015-11-11 03:38:16.863465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:38:16.884774"], ["updated_at", "2015-11-11 03:38:16.884774"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:38:16.910153"], ["updated_at", "2015-11-11 03:38:16.910153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:38:16.928322"], ["updated_at", "2015-11-11 03:38:16.928322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:38:16.945482"], ["updated_at", "2015-11-11 03:38:16.945482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:38:16.962448"], ["updated_at", "2015-11-11 03:38:16.962448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "562c2a5a-84f4-4ad1-ba79-f30f63460e0a"], ["created_at", "2015-11-11 03:38:16.968089"], ["updated_at", "2015-11-11 03:38:16.968089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "562c2a5a-84f4-4ad1-ba79-f30f63460e0a"], ["created_at", "2015-11-11 03:38:16.973887"], ["updated_at", "2015-11-11 03:38:16.973887"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:38:16.986210"], ["updated_at", "2015-11-11 03:38:16.986210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ee2eec11-3ae0-4f21-af2a-0358db2e4428"], ["created_at", "2015-11-11 03:38:16.991693"], ["updated_at", "2015-11-11 03:38:16.991693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:38:17.015254"], ["updated_at", "2015-11-11 03:38:17.015254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:38:17.033199"], ["updated_at", "2015-11-11 03:38:17.033199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:38:17.055952"], ["updated_at", "2015-11-11 03:38:17.055952"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "627746cb-d98e-4e5e-81c0-cd1ee49e06db"], ["created_at", "2015-11-11 03:38:17.058104"], ["updated_at", "2015-11-11 03:38:17.058104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:39:38.914679"], ["updated_at", "2015-11-11 03:39:38.914679"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:39:38.946668"], ["updated_at", "2015-11-11 03:39:38.946668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:39:38.966235"], ["updated_at", "2015-11-11 03:39:38.966235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:39:38.989885"], ["updated_at", "2015-11-11 03:39:38.989885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:39:39.003859"], ["updated_at", "2015-11-11 03:39:39.003859"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:39:39.023096"], ["updated_at", "2015-11-11 03:39:39.023096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ea351b88-85f5-4a28-8911-a0d2be6daca5"], ["created_at", "2015-11-11 03:39:39.027984"], ["updated_at", "2015-11-11 03:39:39.027984"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ea351b88-85f5-4a28-8911-a0d2be6daca5"], ["created_at", "2015-11-11 03:39:39.036159"], ["updated_at", "2015-11-11 03:39:39.036159"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:39:39.054419"], ["updated_at", "2015-11-11 03:39:39.054419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "edf55c34-a150-424e-a291-e600ed8bbc7e"], ["created_at", "2015-11-11 03:39:39.059315"], ["updated_at", "2015-11-11 03:39:39.059315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:39:39.079389"], ["updated_at", "2015-11-11 03:39:39.079389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:39:39.097201"], ["updated_at", "2015-11-11 03:39:39.097201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:39:39.115650"], ["updated_at", "2015-11-11 03:39:39.115650"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0ef2ba97-f2a5-4dac-a420-bb322a97a342"], ["created_at", "2015-11-11 03:39:39.117516"], ["updated_at", "2015-11-11 03:39:39.117516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:40:13.343874"], ["updated_at", "2015-11-11 03:40:13.343874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:40:13.370085"], ["updated_at", "2015-11-11 03:40:13.370085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:40:13.393752"], ["updated_at", "2015-11-11 03:40:13.393752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:15.272499"], ["updated_at", "2015-11-11 03:41:15.272499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:15.305581"], ["updated_at", "2015-11-11 03:41:15.305581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:15.320204"], ["updated_at", "2015-11-11 03:41:15.320204"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a5d41d21-cb9b-4b03-95ae-40fadc0bca19"], ["created_at", "2015-11-11 03:41:15.326443"], ["updated_at", "2015-11-11 03:41:15.326443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a5d41d21-cb9b-4b03-95ae-40fadc0bca19"], ["created_at", "2015-11-11 03:41:15.331580"], ["updated_at", "2015-11-11 03:41:15.331580"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:15.347849"], ["updated_at", "2015-11-11 03:41:15.347849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "91c0121e-9b37-4ba6-958b-4be286696aa8"], ["created_at", "2015-11-11 03:41:15.353979"], ["updated_at", "2015-11-11 03:41:15.353979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:15.370214"], ["updated_at", "2015-11-11 03:41:15.370214"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:15.385437"], ["updated_at", "2015-11-11 03:41:15.385437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:41:15.404074"], ["updated_at", "2015-11-11 03:41:15.404074"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "508cfef0-8383-499d-b4c1-6b1e66f534e6"], ["created_at", "2015-11-11 03:41:15.406253"], ["updated_at", "2015-11-11 03:41:15.406253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:18.619393"], ["updated_at", "2015-11-11 03:41:18.619393"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.2ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:18.643910"], ["updated_at", "2015-11-11 03:41:18.643910"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:18.667747"], ["updated_at", "2015-11-11 03:41:18.667747"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:19.875458"], ["updated_at", "2015-11-11 03:41:19.875458"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:19.897399"], ["updated_at", "2015-11-11 03:41:19.897399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:19.913559"], ["updated_at", "2015-11-11 03:41:19.913559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e0160d8b-befd-4937-8a11-622461f775fc"], ["created_at", "2015-11-11 03:41:19.919139"], ["updated_at", "2015-11-11 03:41:19.919139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e0160d8b-befd-4937-8a11-622461f775fc"], ["created_at", "2015-11-11 03:41:19.925221"], ["updated_at", "2015-11-11 03:41:19.925221"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:19.940988"], ["updated_at", "2015-11-11 03:41:19.940988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5674ea5b-1a01-44bb-9fc8-7bcf6ca5341b"], ["created_at", "2015-11-11 03:41:19.948585"], ["updated_at", "2015-11-11 03:41:19.948585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:19.967047"], ["updated_at", "2015-11-11 03:41:19.967047"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:41:19.989239"], ["updated_at", "2015-11-11 03:41:19.989239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:41:20.013736"], ["updated_at", "2015-11-11 03:41:20.013736"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c3d2eabc-b104-4b1c-9867-6b7f2a45709c"], ["created_at", "2015-11-11 03:41:20.015729"], ["updated_at", "2015-11-11 03:41:20.015729"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:43:01.393141"], ["updated_at", "2015-11-11 03:43:01.393141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:43:01.415216"], ["updated_at", "2015-11-11 03:43:01.415216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:43:01.440975"], ["updated_at", "2015-11-11 03:43:01.440975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:43:02.936826"], ["updated_at", "2015-11-11 03:43:02.936826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:43:02.954013"], ["updated_at", "2015-11-11 03:43:02.954013"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:43:02.974900"], ["updated_at", "2015-11-11 03:43:02.974900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5be30234-cca9-4f4b-9042-d6a6251206a2"], ["created_at", "2015-11-11 03:43:02.981131"], ["updated_at", "2015-11-11 03:43:02.981131"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5be30234-cca9-4f4b-9042-d6a6251206a2"], ["created_at", "2015-11-11 03:43:02.988901"], ["updated_at", "2015-11-11 03:43:02.988901"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:43:03.005348"], ["updated_at", "2015-11-11 03:43:03.005348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ac6bca28-a57c-4edf-aba4-0e27c84d5890"], ["created_at", "2015-11-11 03:43:03.011777"], ["updated_at", "2015-11-11 03:43:03.011777"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:43:03.036268"], ["updated_at", "2015-11-11 03:43:03.036268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:43:03.052932"], ["updated_at", "2015-11-11 03:43:03.052932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:43:03.078981"], ["updated_at", "2015-11-11 03:43:03.078981"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "23f44b9a-9a33-421f-b4d7-8605f08b85c8"], ["created_at", "2015-11-11 03:43:03.081038"], ["updated_at", "2015-11-11 03:43:03.081038"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:11.912213"], ["updated_at", "2015-11-11 03:44:11.912213"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:11.934959"], ["updated_at", "2015-11-11 03:44:11.934959"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:11.960509"], ["updated_at", "2015-11-11 03:44:11.960509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:13.565268"], ["updated_at", "2015-11-11 03:44:13.565268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:13.582413"], ["updated_at", "2015-11-11 03:44:13.582413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:13.598723"], ["updated_at", "2015-11-11 03:44:13.598723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f016d853-10fe-46cd-b888-e77e71ce4577"], ["created_at", "2015-11-11 03:44:13.604606"], ["updated_at", "2015-11-11 03:44:13.604606"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f016d853-10fe-46cd-b888-e77e71ce4577"], ["created_at", "2015-11-11 03:44:13.615083"], ["updated_at", "2015-11-11 03:44:13.615083"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:13.632184"], ["updated_at", "2015-11-11 03:44:13.632184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "641625ba-99d2-4ad4-a65e-98993efbdbf6"], ["created_at", "2015-11-11 03:44:13.639109"], ["updated_at", "2015-11-11 03:44:13.639109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:13.656230"], ["updated_at", "2015-11-11 03:44:13.656230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:13.675367"], ["updated_at", "2015-11-11 03:44:13.675367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:44:13.695128"], ["updated_at", "2015-11-11 03:44:13.695128"]] SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "83c4a4a4-48bb-47a9-829c-8261c8769a14"], ["created_at", "2015-11-11 03:44:13.697368"], ["updated_at", "2015-11-11 03:44:13.697368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:38.129674"], ["updated_at", "2015-11-11 03:44:38.129674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:38.153631"], ["updated_at", "2015-11-11 03:44:38.153631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:38.178707"], ["updated_at", "2015-11-11 03:44:38.178707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:40.006081"], ["updated_at", "2015-11-11 03:44:40.006081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:40.025955"], ["updated_at", "2015-11-11 03:44:40.025955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:40.041652"], ["updated_at", "2015-11-11 03:44:40.041652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:40.055856"], ["updated_at", "2015-11-11 03:44:40.055856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:40.074400"], ["updated_at", "2015-11-11 03:44:40.074400"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:40.098537"], ["updated_at", "2015-11-11 03:44:40.098537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:53.129096"], ["updated_at", "2015-11-11 03:44:53.129096"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:53.153881"], ["updated_at", "2015-11-11 03:44:53.153881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:53.173277"], ["updated_at", "2015-11-11 03:44:53.173277"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:54.597660"], ["updated_at", "2015-11-11 03:44:54.597660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:54.619006"], ["updated_at", "2015-11-11 03:44:54.619006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:54.638208"], ["updated_at", "2015-11-11 03:44:54.638208"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "49615d12-8353-47bc-abc9-09cca7c793e8"], ["created_at", "2015-11-11 03:44:54.648843"], ["updated_at", "2015-11-11 03:44:54.648843"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "49615d12-8353-47bc-abc9-09cca7c793e8"], ["created_at", "2015-11-11 03:44:54.656961"], ["updated_at", "2015-11-11 03:44:54.656961"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:54.673608"], ["updated_at", "2015-11-11 03:44:54.673608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "91d7c931-498b-4c87-86cb-5660d149d4f8"], ["created_at", "2015-11-11 03:44:54.680956"], ["updated_at", "2015-11-11 03:44:54.680956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:54.698691"], ["updated_at", "2015-11-11 03:44:54.698691"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:44:54.719745"], ["updated_at", "2015-11-11 03:44:54.719745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:44:54.741059"], ["updated_at", "2015-11-11 03:44:54.741059"]] SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "25448dd4-0dfe-457e-8b84-2098d36d8f63"], ["created_at", "2015-11-11 03:44:54.744614"], ["updated_at", "2015-11-11 03:44:54.744614"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:30.741118"], ["updated_at", "2015-11-11 03:45:30.741118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:30.768897"], ["updated_at", "2015-11-11 03:45:30.768897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:30.793453"], ["updated_at", "2015-11-11 03:45:30.793453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:33.324667"], ["updated_at", "2015-11-11 03:45:33.324667"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:33.344880"], ["updated_at", "2015-11-11 03:45:33.344880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:33.364100"], ["updated_at", "2015-11-11 03:45:33.364100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a5a54da0-6cdc-43a2-aaff-ec38c8867a66"], ["created_at", "2015-11-11 03:45:33.370127"], ["updated_at", "2015-11-11 03:45:33.370127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a5a54da0-6cdc-43a2-aaff-ec38c8867a66"], ["created_at", "2015-11-11 03:45:33.377265"], ["updated_at", "2015-11-11 03:45:33.377265"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:33.393864"], ["updated_at", "2015-11-11 03:45:33.393864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "69042448-10a3-4bb5-aa4f-6b20c8cb11b0"], ["created_at", "2015-11-11 03:45:33.400210"], ["updated_at", "2015-11-11 03:45:33.400210"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:33.422799"], ["updated_at", "2015-11-11 03:45:33.422799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:33.445292"], ["updated_at", "2015-11-11 03:45:33.445292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:45:33.465557"], ["updated_at", "2015-11-11 03:45:33.465557"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4359e17d-a5bf-4d2e-bdce-cdd0a5a760b3"], ["created_at", "2015-11-11 03:45:33.467984"], ["updated_at", "2015-11-11 03:45:33.467984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:40.136884"], ["updated_at", "2015-11-11 03:45:40.136884"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:40.162482"], ["updated_at", "2015-11-11 03:45:40.162482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:40.187862"], ["updated_at", "2015-11-11 03:45:40.187862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:40.206040"], ["updated_at", "2015-11-11 03:45:40.206040"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:40.225767"], ["updated_at", "2015-11-11 03:45:40.225767"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:40.242318"], ["updated_at", "2015-11-11 03:45:40.242318"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0ccf93d3-6114-459a-a888-196fc1bf2525"], ["created_at", "2015-11-11 03:45:40.249210"], ["updated_at", "2015-11-11 03:45:40.249210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0ccf93d3-6114-459a-a888-196fc1bf2525"], ["created_at", "2015-11-11 03:45:40.254363"], ["updated_at", "2015-11-11 03:45:40.254363"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:40.265815"], ["updated_at", "2015-11-11 03:45:40.265815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "17abd073-fd26-43c3-8b64-c5cad0b00fb9"], ["created_at", "2015-11-11 03:45:40.273938"], ["updated_at", "2015-11-11 03:45:40.273938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:40.290441"], ["updated_at", "2015-11-11 03:45:40.290441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:45:40.309814"], ["updated_at", "2015-11-11 03:45:40.309814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:45:40.331494"], ["updated_at", "2015-11-11 03:45:40.331494"]] SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "03ba729a-5104-40d7-ab4f-35e5457586d8"], ["created_at", "2015-11-11 03:45:40.333454"], ["updated_at", "2015-11-11 03:45:40.333454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:50:08.459866"], ["updated_at", "2015-11-11 03:50:08.459866"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:50:08.487076"], ["updated_at", "2015-11-11 03:50:08.487076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:50:08.512674"], ["updated_at", "2015-11-11 03:50:08.512674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:50:08.532104"], ["updated_at", "2015-11-11 03:50:08.532104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:50:08.551924"], ["updated_at", "2015-11-11 03:50:08.551924"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:50:08.567821"], ["updated_at", "2015-11-11 03:50:08.567821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ce518e1d-21f6-407b-8d53-24cbd211f2c8"], ["created_at", "2015-11-11 03:50:08.572971"], ["updated_at", "2015-11-11 03:50:08.572971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ce518e1d-21f6-407b-8d53-24cbd211f2c8"], ["created_at", "2015-11-11 03:50:08.580503"], ["updated_at", "2015-11-11 03:50:08.580503"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:50:08.594566"], ["updated_at", "2015-11-11 03:50:08.594566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3b916be1-aaca-4b8a-a55d-5756cbec5f91"], ["created_at", "2015-11-11 03:50:08.599985"], ["updated_at", "2015-11-11 03:50:08.599985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:50:08.615315"], ["updated_at", "2015-11-11 03:50:08.615315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:50:08.637136"], ["updated_at", "2015-11-11 03:50:08.637136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:50:08.655157"], ["updated_at", "2015-11-11 03:50:08.655157"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2e70d374-1ae1-457d-87f7-8d2e4317d1ea"], ["created_at", "2015-11-11 03:50:08.657194"], ["updated_at", "2015-11-11 03:50:08.657194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:51:15.390340"], ["updated_at", "2015-11-11 03:51:15.390340"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:51:15.415481"], ["updated_at", "2015-11-11 03:51:15.415481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:51:15.435828"], ["updated_at", "2015-11-11 03:51:15.435828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:51:15.454295"], ["updated_at", "2015-11-11 03:51:15.454295"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:51:15.469220"], ["updated_at", "2015-11-11 03:51:15.469220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:51:15.484346"], ["updated_at", "2015-11-11 03:51:15.484346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cd919883-4283-46a0-bd14-c3551c81dba8"], ["created_at", "2015-11-11 03:51:15.490010"], ["updated_at", "2015-11-11 03:51:15.490010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cd919883-4283-46a0-bd14-c3551c81dba8"], ["created_at", "2015-11-11 03:51:15.495443"], ["updated_at", "2015-11-11 03:51:15.495443"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:51:15.506997"], ["updated_at", "2015-11-11 03:51:15.506997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7deaa6f9-f425-4552-b11a-c3c869b2484e"], ["created_at", "2015-11-11 03:51:15.512761"], ["updated_at", "2015-11-11 03:51:15.512761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:51:15.527975"], ["updated_at", "2015-11-11 03:51:15.527975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:51:15.543960"], ["updated_at", "2015-11-11 03:51:15.543960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-11 03:51:15.562170"], ["updated_at", "2015-11-11 03:51:15.562170"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1758f02f-f3ed-45dd-8c95-8a3d1c1f131d"], ["created_at", "2015-11-11 03:51:15.564145"], ["updated_at", "2015-11-11 03:51:15.564145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "c7bf7018-c28c-428f-9416-573938af0f3d"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1758f02f-f3ed-45dd-8c95-8a3d1c1f131d"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'c7bf7018-c28c-428f-9416-573938af0f3d') LIMIT 1 Strain::Article Load (1.5ms) SELECT "strain_articles".* FROM "strain_articles" ORDER BY "strain_articles"."id" ASC LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:19.613316"], ["updated_at", "2015-11-11 03:52:19.613316"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:19.640049"], ["updated_at", "2015-11-11 03:52:19.640049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:19.664300"], ["updated_at", "2015-11-11 03:52:19.664300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:19.689430"], ["updated_at", "2015-11-11 03:52:19.689430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:19.707252"], ["updated_at", "2015-11-11 03:52:19.707252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:19.722126"], ["updated_at", "2015-11-11 03:52:19.722126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "97bb4817-fe2e-4c57-81ff-5054b6fe52d4"], ["created_at", "2015-11-11 03:52:19.727210"], ["updated_at", "2015-11-11 03:52:19.727210"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "97bb4817-fe2e-4c57-81ff-5054b6fe52d4"], ["created_at", "2015-11-11 03:52:19.733443"], ["updated_at", "2015-11-11 03:52:19.733443"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:19.744598"], ["updated_at", "2015-11-11 03:52:19.744598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a45f5758-bbd7-4e4d-be78-bcc1eb504ea2"], ["created_at", "2015-11-11 03:52:19.750724"], ["updated_at", "2015-11-11 03:52:19.750724"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:19.770234"], ["updated_at", "2015-11-11 03:52:19.770234"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:19.791395"], ["updated_at", "2015-11-11 03:52:19.791395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:44.513108"], ["updated_at", "2015-11-11 03:52:44.513108"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:44.535666"], ["updated_at", "2015-11-11 03:52:44.535666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:44.559350"], ["updated_at", "2015-11-11 03:52:44.559350"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:44.581993"], ["updated_at", "2015-11-11 03:52:44.581993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:44.596670"], ["updated_at", "2015-11-11 03:52:44.596670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:44.615366"], ["updated_at", "2015-11-11 03:52:44.615366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d40a909e-d69e-49dc-9f13-1765a0a3c1b3"], ["created_at", "2015-11-11 03:52:44.621412"], ["updated_at", "2015-11-11 03:52:44.621412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d40a909e-d69e-49dc-9f13-1765a0a3c1b3"], ["created_at", "2015-11-11 03:52:44.626532"], ["updated_at", "2015-11-11 03:52:44.626532"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:44.638264"], ["updated_at", "2015-11-11 03:52:44.638264"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "91997229-651b-45e1-ab16-916d3861194d"], ["created_at", "2015-11-11 03:52:44.647624"], ["updated_at", "2015-11-11 03:52:44.647624"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:44.667353"], ["updated_at", "2015-11-11 03:52:44.667353"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:52:44.686880"], ["updated_at", "2015-11-11 03:52:44.686880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:57:29.492441"], ["updated_at", "2015-11-11 03:57:29.492441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:57:29.516924"], ["updated_at", "2015-11-11 03:57:29.516924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:57:29.539486"], ["updated_at", "2015-11-11 03:57:29.539486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:57:29.557788"], ["updated_at", "2015-11-11 03:57:29.557788"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:57:29.576349"], ["updated_at", "2015-11-11 03:57:29.576349"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:57:29.592141"], ["updated_at", "2015-11-11 03:57:29.592141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e6e36ba7-2ce0-47f3-8de9-44cd7b896df0"], ["created_at", "2015-11-11 03:57:29.597469"], ["updated_at", "2015-11-11 03:57:29.597469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e6e36ba7-2ce0-47f3-8de9-44cd7b896df0"], ["created_at", "2015-11-11 03:57:29.602502"], ["updated_at", "2015-11-11 03:57:29.602502"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:57:29.613532"], ["updated_at", "2015-11-11 03:57:29.613532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cff48d03-a403-4d21-b775-3fbf369b5988"], ["created_at", "2015-11-11 03:57:29.618829"], ["updated_at", "2015-11-11 03:57:29.618829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:57:29.632761"], ["updated_at", "2015-11-11 03:57:29.632761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 03:57:29.646499"], ["updated_at", "2015-11-11 03:57:29.646499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 04:05:16.992157"], ["updated_at", "2015-11-11 04:05:16.992157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 04:05:17.018021"], ["updated_at", "2015-11-11 04:05:17.018021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 04:05:17.042950"], ["updated_at", "2015-11-11 04:05:17.042950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 04:05:17.064989"], ["updated_at", "2015-11-11 04:05:17.064989"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 04:05:17.084935"], ["updated_at", "2015-11-11 04:05:17.084935"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 04:05:17.105672"], ["updated_at", "2015-11-11 04:05:17.105672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5d34c563-798f-4bdc-978a-401971b61c22"], ["created_at", "2015-11-11 04:05:17.110762"], ["updated_at", "2015-11-11 04:05:17.110762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5d34c563-798f-4bdc-978a-401971b61c22"], ["created_at", "2015-11-11 04:05:17.115641"], ["updated_at", "2015-11-11 04:05:17.115641"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 04:05:17.127329"], ["updated_at", "2015-11-11 04:05:17.127329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c125166a-3c09-4ad2-afde-1cecb2b26f28"], ["created_at", "2015-11-11 04:05:17.132246"], ["updated_at", "2015-11-11 04:05:17.132246"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 04:05:17.151953"], ["updated_at", "2015-11-11 04:05:17.151953"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 04:05:17.174737"], ["updated_at", "2015-11-11 04:05:17.174737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (5.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.1ms) BEGIN  (4.0ms) SAVEPOINT active_record_1 Strain::Variant Exists (9.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (59.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.371342"], ["updated_at", "2015-11-11 21:15:45.371342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.455285"], ["updated_at", "2015-11-11 21:15:45.455285"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.479079"], ["updated_at", "2015-11-11 21:15:45.479079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.497203"], ["updated_at", "2015-11-11 21:15:45.497203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.511467"], ["updated_at", "2015-11-11 21:15:45.511467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.528088"], ["updated_at", "2015-11-11 21:15:45.528088"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "831ee22d-bd08-4a0c-9255-1aa86610e98a"], ["created_at", "2015-11-11 21:15:45.534527"], ["updated_at", "2015-11-11 21:15:45.534527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "831ee22d-bd08-4a0c-9255-1aa86610e98a"], ["created_at", "2015-11-11 21:15:45.540345"], ["updated_at", "2015-11-11 21:15:45.540345"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.555584"], ["updated_at", "2015-11-11 21:15:45.555584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9210cdc0-a89a-41f5-b84e-3a49362069a0"], ["created_at", "2015-11-11 21:15:45.560960"], ["updated_at", "2015-11-11 21:15:45.560960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.575854"], ["updated_at", "2015-11-11 21:15:45.575854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.591107"], ["updated_at", "2015-11-11 21:15:45.591107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.657231"], ["updated_at", "2015-11-11 21:15:45.657231"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.660751"], ["updated_at", "2015-11-11 21:15:45.660751"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.672205"], ["updated_at", "2015-11-11 21:15:45.672205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.704957"], ["updated_at", "2015-11-11 21:15:45.704957"]]  (0.6ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0b00fbfb-8c4e-4216-b643-de98becb6e91"], ["created_at", "2015-11-11 21:15:45.710785"], ["updated_at", "2015-11-11 21:15:45.710785"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-11 16:15:45 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (3.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 3.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.766307"], ["updated_at", "2015-11-11 21:15:45.766307"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (3.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "259b7a00-99ce-4723-844e-cc3e126ddef0"], ["created_at", "2015-11-11 21:15:45.775337"], ["updated_at", "2015-11-11 21:15:45.775337"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/e6f5aa3b-be3b-43b9-8463-01bf8c2e1874" for 127.0.0.1 at 2015-11-11 16:15:45 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"e6f5aa3b-be3b-43b9-8463-01bf8c2e1874"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e6f5aa3b-be3b-43b9-8463-01bf8c2e1874"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "259b7a00-99ce-4723-844e-cc3e126ddef0"]] Completed 200 OK in 18ms (Views: 1.3ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.820798"], ["updated_at", "2015-11-11 21:15:45.820798"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-11 16:15:45 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"fa3c4366-bdba-4024-8705-07042373c948"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fa3c4366-bdba-4024-8705-07042373c948"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.858783"], ["updated_at", "2015-11-11 21:15:45.858783"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "636ca592-7a68-4e5f-9f9a-e94c3ae314b7"], ["created_at", "2015-11-11 21:15:45.864468"], ["updated_at", "2015-11-11 21:15:45.864468"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/3fe390a2-7a74-4a78-b293-356aa7cf41ad" for 127.0.0.1 at 2015-11-11 16:15:45 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"3fe390a2-7a74-4a78-b293-356aa7cf41ad"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3fe390a2-7a74-4a78-b293-356aa7cf41ad"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "3fe390a2-7a74-4a78-b293-356aa7cf41ad"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.887653"], ["updated_at", "2015-11-11 21:15:45.887653"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "175ffd42-4325-42a7-b288-da5d4a4c3b6d"], ["created_at", "2015-11-11 21:15:45.893510"], ["updated_at", "2015-11-11 21:15:45.893510"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/279c0df2-0091-4935-821d-5a19207e294d" for 127.0.0.1 at 2015-11-11 16:15:45 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"279c0df2-0091-4935-821d-5a19207e294d", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"279c0df2-0091-4935-821d-5a19207e294d"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "279c0df2-0091-4935-821d-5a19207e294d"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "175ffd42-4325-42a7-b288-da5d4a4c3b6d"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '279c0df2-0091-4935-821d-5a19207e294d') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '279c0df2-0091-4935-821d-5a19207e294d') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-11 21:15:45.906029"], ["id", "279c0df2-0091-4935-821d-5a19207e294d"]]  (0.4ms) COMMIT Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "279c0df2-0091-4935-821d-5a19207e294d"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.927530"], ["updated_at", "2015-11-11 21:15:45.927530"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-11 16:15:45 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.950302"], ["updated_at", "2015-11-11 21:15:45.950302"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/c80e98c1-5060-4577-b9f4-b75677a0eced" for 127.0.0.1 at 2015-11-11 16:15:45 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"c80e98c1-5060-4577-b9f4-b75677a0eced"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c80e98c1-5060-4577-b9f4-b75677a0eced"]] Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-11 16:15:45 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-11 21:15:45.981005"], ["updated_at", "2015-11-11 21:15:45.981005"]]  (0.4ms) COMMIT Completed 201 Created in 17ms (Views: 0.4ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:45.996439"], ["updated_at", "2015-11-11 21:15:45.996439"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/273446e6-0240-4454-9206-42c99b0e9292" for 127.0.0.1 at 2015-11-11 16:15:46 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"273446e6-0240-4454-9206-42c99b0e9292"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "273446e6-0240-4454-9206-42c99b0e9292"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "273446e6-0240-4454-9206-42c99b0e9292"]]  (0.4ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:15:46.019949"], ["updated_at", "2015-11-11 21:15:46.019949"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/9aa5921d-fc9b-452e-87ea-2a8f5ed5675a" for 127.0.0.1 at 2015-11-11 16:15:46 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"9aa5921d-fc9b-452e-87ea-2a8f5ed5675a", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"9aa5921d-fc9b-452e-87ea-2a8f5ed5675a"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "9aa5921d-fc9b-452e-87ea-2a8f5ed5675a"]] Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '9aa5921d-fc9b-452e-87ea-2a8f5ed5675a') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '9aa5921d-fc9b-452e-87ea-2a8f5ed5675a') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-11 21:15:46.039311"], ["id", "9aa5921d-fc9b-452e-87ea-2a8f5ed5675a"]]  (0.4ms) COMMIT Completed 200 OK in 20ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9aa5921d-fc9b-452e-87ea-2a8f5ed5675a"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.116376"], ["updated_at", "2015-11-11 21:18:17.116376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.155148"], ["updated_at", "2015-11-11 21:18:17.155148"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.176806"], ["updated_at", "2015-11-11 21:18:17.176806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.196514"], ["updated_at", "2015-11-11 21:18:17.196514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.214582"], ["updated_at", "2015-11-11 21:18:17.214582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.229574"], ["updated_at", "2015-11-11 21:18:17.229574"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ec3a5ed0-f318-4141-a18d-f9768097de90"], ["created_at", "2015-11-11 21:18:17.235159"], ["updated_at", "2015-11-11 21:18:17.235159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ec3a5ed0-f318-4141-a18d-f9768097de90"], ["created_at", "2015-11-11 21:18:17.240337"], ["updated_at", "2015-11-11 21:18:17.240337"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.251015"], ["updated_at", "2015-11-11 21:18:17.251015"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "599d03ba-f3e6-4a99-9fce-06a820681f52"], ["created_at", "2015-11-11 21:18:17.256560"], ["updated_at", "2015-11-11 21:18:17.256560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.270537"], ["updated_at", "2015-11-11 21:18:17.270537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.283578"], ["updated_at", "2015-11-11 21:18:17.283578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.341879"], ["updated_at", "2015-11-11 21:18:17.341879"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.347325"], ["updated_at", "2015-11-11 21:18:17.347325"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.360298"], ["updated_at", "2015-11-11 21:18:17.360298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.390578"], ["updated_at", "2015-11-11 21:18:17.390578"]]  (3.2ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "67bf4854-839e-4596-a3d2-35efe03e6548"], ["created_at", "2015-11-11 21:18:17.399204"], ["updated_at", "2015-11-11 21:18:17.399204"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-11 16:18:17 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 2.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.445677"], ["updated_at", "2015-11-11 21:18:17.445677"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9e72d5d3-5f32-4f00-af62-e6c8201c527b"], ["created_at", "2015-11-11 21:18:17.451291"], ["updated_at", "2015-11-11 21:18:17.451291"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/a4964daf-df8e-4b5e-8b33-178a8d5f4cf2" for 127.0.0.1 at 2015-11-11 16:18:17 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"a4964daf-df8e-4b5e-8b33-178a8d5f4cf2"} Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "a4964daf-df8e-4b5e-8b33-178a8d5f4cf2"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9e72d5d3-5f32-4f00-af62-e6c8201c527b"]] Completed 200 OK in 15ms (Views: 1.8ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.491600"], ["updated_at", "2015-11-11 21:18:17.491600"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-11 16:18:17 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"f5c93d3b-4de5-47c4-9a7f-e1fe73ce1cf5"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f5c93d3b-4de5-47c4-9a7f-e1fe73ce1cf5"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.514433"], ["updated_at", "2015-11-11 21:18:17.514433"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5395e6d3-c0df-47ce-984d-6653e90aa886"], ["created_at", "2015-11-11 21:18:17.520484"], ["updated_at", "2015-11-11 21:18:17.520484"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/articles/ebb14957-b892-4837-bab1-d757bbbf39e9" for 127.0.0.1 at 2015-11-11 16:18:17 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"ebb14957-b892-4837-bab1-d757bbbf39e9"}  (0.2ms) BEGIN Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ebb14957-b892-4837-bab1-d757bbbf39e9"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "ebb14957-b892-4837-bab1-d757bbbf39e9"]]  (0.4ms) COMMIT Completed 204 No Content in 6ms (Views: 0.2ms | ActiveRecord: 1.6ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.547631"], ["updated_at", "2015-11-11 21:18:17.547631"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4957589b-6950-45cb-be43-f8b916d551b5"], ["created_at", "2015-11-11 21:18:17.553019"], ["updated_at", "2015-11-11 21:18:17.553019"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/2f234ac0-73fe-4394-85d9-19f3bdcd2d87" for 127.0.0.1 at 2015-11-11 16:18:17 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"2f234ac0-73fe-4394-85d9-19f3bdcd2d87", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"2f234ac0-73fe-4394-85d9-19f3bdcd2d87"}  (0.2ms) BEGIN Strain::Article Load (0.6ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2f234ac0-73fe-4394-85d9-19f3bdcd2d87"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4957589b-6950-45cb-be43-f8b916d551b5"]] Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '2f234ac0-73fe-4394-85d9-19f3bdcd2d87') LIMIT 1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '2f234ac0-73fe-4394-85d9-19f3bdcd2d87') LIMIT 1 SQL (0.5ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-11 21:18:17.572230"], ["id", "2f234ac0-73fe-4394-85d9-19f3bdcd2d87"]]  (0.5ms) COMMIT Completed 200 OK in 22ms (Views: 1.4ms | ActiveRecord: 3.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "2f234ac0-73fe-4394-85d9-19f3bdcd2d87"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.596855"], ["updated_at", "2015-11-11 21:18:17.596855"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-11 16:18:17 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.616340"], ["updated_at", "2015-11-11 21:18:17.616340"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/62398c36-50ee-4668-9a0b-d39f4daabf98" for 127.0.0.1 at 2015-11-11 16:18:17 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"62398c36-50ee-4668-9a0b-d39f4daabf98"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "62398c36-50ee-4668-9a0b-d39f4daabf98"]] Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-11 16:18:17 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-11 21:18:17.652813"], ["updated_at", "2015-11-11 21:18:17.652813"]]  (0.5ms) COMMIT Completed 201 Created in 23ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.670511"], ["updated_at", "2015-11-11 21:18:17.670511"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/1cc6234a-8e37-4d0b-9331-e7936645a0b5" for 127.0.0.1 at 2015-11-11 16:18:17 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"1cc6234a-8e37-4d0b-9331-e7936645a0b5"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "1cc6234a-8e37-4d0b-9331-e7936645a0b5"]] SQL (0.4ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "1cc6234a-8e37-4d0b-9331-e7936645a0b5"]]  (0.6ms) COMMIT Completed 204 No Content in 6ms (Views: 0.2ms | ActiveRecord: 1.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-11 21:18:17.698082"], ["updated_at", "2015-11-11 21:18:17.698082"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/74e046c0-2d42-4775-bd3e-0ba2922c377d" for 127.0.0.1 at 2015-11-11 16:18:17 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"74e046c0-2d42-4775-bd3e-0ba2922c377d", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"74e046c0-2d42-4775-bd3e-0ba2922c377d"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "74e046c0-2d42-4775-bd3e-0ba2922c377d"]] Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '74e046c0-2d42-4775-bd3e-0ba2922c377d') LIMIT 1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '74e046c0-2d42-4775-bd3e-0ba2922c377d') LIMIT 1 SQL (0.5ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-11 21:18:17.716347"], ["id", "74e046c0-2d42-4775-bd3e-0ba2922c377d"]]  (0.5ms) COMMIT Completed 200 OK in 20ms (Views: 0.4ms | ActiveRecord: 2.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "74e046c0-2d42-4775-bd3e-0ba2922c377d"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (24.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.745360"], ["updated_at", "2015-11-12 04:23:51.745360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.790802"], ["updated_at", "2015-11-12 04:23:51.790802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.816951"], ["updated_at", "2015-11-12 04:23:51.816951"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.833679"], ["updated_at", "2015-11-12 04:23:51.833679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.847384"], ["updated_at", "2015-11-12 04:23:51.847384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.861164"], ["updated_at", "2015-11-12 04:23:51.861164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "274a0289-3521-4fac-87d0-271aaf50f4d6"], ["created_at", "2015-11-12 04:23:51.866283"], ["updated_at", "2015-11-12 04:23:51.866283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "274a0289-3521-4fac-87d0-271aaf50f4d6"], ["created_at", "2015-11-12 04:23:51.873580"], ["updated_at", "2015-11-12 04:23:51.873580"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.885348"], ["updated_at", "2015-11-12 04:23:51.885348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9beb8cb1-03d9-42fb-a725-23d849a9dff9"], ["created_at", "2015-11-12 04:23:51.891670"], ["updated_at", "2015-11-12 04:23:51.891670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.904677"], ["updated_at", "2015-11-12 04:23:51.904677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.918481"], ["updated_at", "2015-11-12 04:23:51.918481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.979171"], ["updated_at", "2015-11-12 04:23:51.979171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.982236"], ["updated_at", "2015-11-12 04:23:51.982236"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:51.992230"], ["updated_at", "2015-11-12 04:23:51.992230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:52.027199"], ["updated_at", "2015-11-12 04:23:52.027199"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "58449a15-217a-4a64-a797-88b93541ccc3"], ["created_at", "2015-11-12 04:23:52.033298"], ["updated_at", "2015-11-12 04:23:52.033298"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-11 23:23:52 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:52.083225"], ["updated_at", "2015-11-12 04:23:52.083225"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f0777f16-6841-4ad0-8e3a-8d1644bd2aaf"], ["created_at", "2015-11-12 04:23:52.089251"], ["updated_at", "2015-11-12 04:23:52.089251"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/2cd4a0a6-8ba2-44db-a497-7654b50d47a7" for 127.0.0.1 at 2015-11-11 23:23:52 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"2cd4a0a6-8ba2-44db-a497-7654b50d47a7"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2cd4a0a6-8ba2-44db-a497-7654b50d47a7"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f0777f16-6841-4ad0-8e3a-8d1644bd2aaf"]] Completed 200 OK in 15ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:52.128233"], ["updated_at", "2015-11-12 04:23:52.128233"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-11 23:23:52 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"1454464e-c3db-4d8c-ad45-6e8e88834410"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1454464e-c3db-4d8c-ad45-6e8e88834410"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.4ms) ROLLBACK Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:52.168071"], ["updated_at", "2015-11-12 04:23:52.168071"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1b4a9724-a8b7-43d7-999d-eee574bfe4cf"], ["created_at", "2015-11-12 04:23:52.173834"], ["updated_at", "2015-11-12 04:23:52.173834"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/13d48a4c-7f36-41fa-a304-4b9fe395a23c" for 127.0.0.1 at 2015-11-11 23:23:52 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"13d48a4c-7f36-41fa-a304-4b9fe395a23c"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "13d48a4c-7f36-41fa-a304-4b9fe395a23c"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "13d48a4c-7f36-41fa-a304-4b9fe395a23c"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:52.195526"], ["updated_at", "2015-11-12 04:23:52.195526"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "04b89a3b-2988-44ea-b718-0df233b6adb6"], ["created_at", "2015-11-12 04:23:52.201455"], ["updated_at", "2015-11-12 04:23:52.201455"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/596c8f7c-0ec6-4bfb-817e-96a61ba4ac6e" for 127.0.0.1 at 2015-11-11 23:23:52 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"596c8f7c-0ec6-4bfb-817e-96a61ba4ac6e", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"596c8f7c-0ec6-4bfb-817e-96a61ba4ac6e"}  (0.2ms) BEGIN Strain::Article Load (0.6ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "596c8f7c-0ec6-4bfb-817e-96a61ba4ac6e"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "04b89a3b-2988-44ea-b718-0df233b6adb6"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '596c8f7c-0ec6-4bfb-817e-96a61ba4ac6e') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '596c8f7c-0ec6-4bfb-817e-96a61ba4ac6e') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-12 04:23:52.225324"], ["id", "596c8f7c-0ec6-4bfb-817e-96a61ba4ac6e"]]  (0.4ms) COMMIT Completed 200 OK in 17ms (Views: 0.9ms | ActiveRecord: 3.1ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "596c8f7c-0ec6-4bfb-817e-96a61ba4ac6e"]]  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:52.249118"], ["updated_at", "2015-11-12 04:23:52.249118"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-11 23:23:52 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:52.272682"], ["updated_at", "2015-11-12 04:23:52.272682"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/7eea6318-dbd2-40ed-b0fa-2817426f08c5" for 127.0.0.1 at 2015-11-11 23:23:52 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"7eea6318-dbd2-40ed-b0fa-2817426f08c5"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "7eea6318-dbd2-40ed-b0fa-2817426f08c5"]] Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-11 23:23:52 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-12 04:23:52.301653"], ["updated_at", "2015-11-12 04:23:52.301653"]]  (0.3ms) COMMIT Completed 201 Created in 17ms (Views: 0.4ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:52.316667"], ["updated_at", "2015-11-12 04:23:52.316667"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/789810d5-46a6-4386-baae-7e89c5309eb5" for 127.0.0.1 at 2015-11-11 23:23:52 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"789810d5-46a6-4386-baae-7e89c5309eb5"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "789810d5-46a6-4386-baae-7e89c5309eb5"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "789810d5-46a6-4386-baae-7e89c5309eb5"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 04:23:52.336547"], ["updated_at", "2015-11-12 04:23:52.336547"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/a0c227af-9959-4cfe-b236-5b12fdb8d389" for 127.0.0.1 at 2015-11-11 23:23:52 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"a0c227af-9959-4cfe-b236-5b12fdb8d389", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"a0c227af-9959-4cfe-b236-5b12fdb8d389"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "a0c227af-9959-4cfe-b236-5b12fdb8d389"]] Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'a0c227af-9959-4cfe-b236-5b12fdb8d389') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'a0c227af-9959-4cfe-b236-5b12fdb8d389') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-12 04:23:52.356313"], ["id", "a0c227af-9959-4cfe-b236-5b12fdb8d389"]]  (0.5ms) COMMIT Completed 200 OK in 19ms (Views: 0.4ms | ActiveRecord: 2.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a0c227af-9959-4cfe-b236-5b12fdb8d389"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (20.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 07:59:47.823806"], ["updated_at", "2015-11-12 07:59:47.823806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 07:59:47.866165"], ["updated_at", "2015-11-12 07:59:47.866165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 07:59:47.893617"], ["updated_at", "2015-11-12 07:59:47.893617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 07:59:47.916108"], ["updated_at", "2015-11-12 07:59:47.916108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 07:59:47.935629"], ["updated_at", "2015-11-12 07:59:47.935629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 07:59:47.950890"], ["updated_at", "2015-11-12 07:59:47.950890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c943e68b-318a-451e-9cca-1e65e12b191e"], ["created_at", "2015-11-12 07:59:47.955874"], ["updated_at", "2015-11-12 07:59:47.955874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c943e68b-318a-451e-9cca-1e65e12b191e"], ["created_at", "2015-11-12 07:59:47.961208"], ["updated_at", "2015-11-12 07:59:47.961208"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 07:59:47.972499"], ["updated_at", "2015-11-12 07:59:47.972499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b83cfbad-53bc-4ce7-b0cf-158e2664172d"], ["created_at", "2015-11-12 07:59:47.977662"], ["updated_at", "2015-11-12 07:59:47.977662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 07:59:47.993625"], ["updated_at", "2015-11-12 07:59:47.993625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 07:59:48.015338"], ["updated_at", "2015-11-12 07:59:48.015338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:01:28.680183"], ["updated_at", "2015-11-12 08:01:28.680183"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:01:28.704448"], ["updated_at", "2015-11-12 08:01:28.704448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:01:28.720845"], ["updated_at", "2015-11-12 08:01:28.720845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:01:28.745914"], ["updated_at", "2015-11-12 08:01:28.745914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:01:28.762372"], ["updated_at", "2015-11-12 08:01:28.762372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:01:28.779038"], ["updated_at", "2015-11-12 08:01:28.779038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:01:28.790469"], ["updated_at", "2015-11-12 08:01:28.790469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:01:28.806588"], ["updated_at", "2015-11-12 08:01:28.806588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:01:28.818077"], ["updated_at", "2015-11-12 08:01:28.818077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (2.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:07:22.021447"], ["updated_at", "2015-11-12 08:07:22.021447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:07:22.044649"], ["updated_at", "2015-11-12 08:07:22.044649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:07:22.062350"], ["updated_at", "2015-11-12 08:07:22.062350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:07:22.089004"], ["updated_at", "2015-11-12 08:07:22.089004"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:07:22.102771"], ["updated_at", "2015-11-12 08:07:22.102771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:07:22.118547"], ["updated_at", "2015-11-12 08:07:22.118547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:07:22.131833"], ["updated_at", "2015-11-12 08:07:22.131833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:07:22.148825"], ["updated_at", "2015-11-12 08:07:22.148825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:07:22.161789"], ["updated_at", "2015-11-12 08:07:22.161789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:10:53.212124"], ["updated_at", "2015-11-12 08:10:53.212124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:10:53.235448"], ["updated_at", "2015-11-12 08:10:53.235448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:10:53.246162"], ["updated_at", "2015-11-12 08:10:53.246162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:10:53.270911"], ["updated_at", "2015-11-12 08:10:53.270911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:10:53.281237"], ["updated_at", "2015-11-12 08:10:53.281237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:10:53.296719"], ["updated_at", "2015-11-12 08:10:53.296719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:10:53.307763"], ["updated_at", "2015-11-12 08:10:53.307763"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:10:53.320371"], ["updated_at", "2015-11-12 08:10:53.320371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:10:53.336037"], ["updated_at", "2015-11-12 08:10:53.336037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:11:48.618414"], ["updated_at", "2015-11-12 08:11:48.618414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:11:48.648022"], ["updated_at", "2015-11-12 08:11:48.648022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:11:48.672575"], ["updated_at", "2015-11-12 08:11:48.672575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:11:48.690623"], ["updated_at", "2015-11-12 08:11:48.690623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:11:48.709772"], ["updated_at", "2015-11-12 08:11:48.709772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:11:48.724765"], ["updated_at", "2015-11-12 08:11:48.724765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "34bc38c0-99e4-414a-a0cf-49858fad02f2"], ["created_at", "2015-11-12 08:11:48.729899"], ["updated_at", "2015-11-12 08:11:48.729899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "34bc38c0-99e4-414a-a0cf-49858fad02f2"], ["created_at", "2015-11-12 08:11:48.734566"], ["updated_at", "2015-11-12 08:11:48.734566"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:11:48.747995"], ["updated_at", "2015-11-12 08:11:48.747995"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b1bb49a3-35a5-4e70-a552-457c4473dc20"], ["created_at", "2015-11-12 08:11:48.754675"], ["updated_at", "2015-11-12 08:11:48.754675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:11:48.770370"], ["updated_at", "2015-11-12 08:11:48.770370"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:11:48.792011"], ["updated_at", "2015-11-12 08:11:48.792011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:12:15.732375"], ["updated_at", "2015-11-12 08:12:15.732375"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:12:15.756167"], ["updated_at", "2015-11-12 08:12:15.756167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:12:15.773037"], ["updated_at", "2015-11-12 08:12:15.773037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:12:15.800440"], ["updated_at", "2015-11-12 08:12:15.800440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:12:15.811567"], ["updated_at", "2015-11-12 08:12:15.811567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:12:15.828110"], ["updated_at", "2015-11-12 08:12:15.828110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:12:15.839619"], ["updated_at", "2015-11-12 08:12:15.839619"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:12:15.856412"], ["updated_at", "2015-11-12 08:12:15.856412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:12:15.867674"], ["updated_at", "2015-11-12 08:12:15.867674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:12:39.969384"], ["updated_at", "2015-11-12 08:12:39.969384"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:09.128078"], ["updated_at", "2015-11-12 08:13:09.128078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:10.417118"], ["updated_at", "2015-11-12 08:13:10.417118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:10.949744"], ["updated_at", "2015-11-12 08:13:10.949744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:11.529158"], ["updated_at", "2015-11-12 08:13:11.529158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:12.127548"], ["updated_at", "2015-11-12 08:13:12.127548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:12.647175"], ["updated_at", "2015-11-12 08:13:12.647175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:13.180580"], ["updated_at", "2015-11-12 08:13:13.180580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:13.636532"], ["updated_at", "2015-11-12 08:13:13.636532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:17.639111"], ["updated_at", "2015-11-12 08:13:17.639111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:17.664600"], ["updated_at", "2015-11-12 08:13:17.664600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:17.681647"], ["updated_at", "2015-11-12 08:13:17.681647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:17.706444"], ["updated_at", "2015-11-12 08:13:17.706444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:17.720486"], ["updated_at", "2015-11-12 08:13:17.720486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:17.737735"], ["updated_at", "2015-11-12 08:13:17.737735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:17.749669"], ["updated_at", "2015-11-12 08:13:17.749669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:17.763420"], ["updated_at", "2015-11-12 08:13:17.763420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:17.781936"], ["updated_at", "2015-11-12 08:13:17.781936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:34.228934"], ["updated_at", "2015-11-12 08:13:34.228934"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:34.251293"], ["updated_at", "2015-11-12 08:13:34.251293"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:34.270484"], ["updated_at", "2015-11-12 08:13:34.270484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:34.290338"], ["updated_at", "2015-11-12 08:13:34.290338"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:34.309913"], ["updated_at", "2015-11-12 08:13:34.309913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:34.324526"], ["updated_at", "2015-11-12 08:13:34.324526"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:34.341647"], ["updated_at", "2015-11-12 08:13:34.341647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:34.353429"], ["updated_at", "2015-11-12 08:13:34.353429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:13:34.370954"], ["updated_at", "2015-11-12 08:13:34.370954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:03.683682"], ["updated_at", "2015-11-12 08:22:03.683682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:37.459910"], ["updated_at", "2015-11-12 08:22:37.459910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:38.544125"], ["updated_at", "2015-11-12 08:22:38.544125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:39.194699"], ["updated_at", "2015-11-12 08:22:39.194699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:39.217863"], ["updated_at", "2015-11-12 08:22:39.217863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:39.244461"], ["updated_at", "2015-11-12 08:22:39.244461"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:39.814780"], ["updated_at", "2015-11-12 08:22:39.814780"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:40.624932"], ["updated_at", "2015-11-12 08:22:40.624932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:41.315055"], ["updated_at", "2015-11-12 08:22:41.315055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:48.975180"], ["updated_at", "2015-11-12 08:22:48.975180"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:48.999731"], ["updated_at", "2015-11-12 08:22:48.999731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:49.022666"], ["updated_at", "2015-11-12 08:22:49.022666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:49.039864"], ["updated_at", "2015-11-12 08:22:49.039864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:49.054110"], ["updated_at", "2015-11-12 08:22:49.054110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:49.071213"], ["updated_at", "2015-11-12 08:22:49.071213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d0d304c7-fa16-420f-921e-f86f745c07c9"], ["created_at", "2015-11-12 08:22:49.076500"], ["updated_at", "2015-11-12 08:22:49.076500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d0d304c7-fa16-420f-921e-f86f745c07c9"], ["created_at", "2015-11-12 08:22:49.081098"], ["updated_at", "2015-11-12 08:22:49.081098"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:49.091696"], ["updated_at", "2015-11-12 08:22:49.091696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8d6fe620-e85d-406a-ad5c-723ce5251e4c"], ["created_at", "2015-11-12 08:22:49.096320"], ["updated_at", "2015-11-12 08:22:49.096320"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:49.114313"], ["updated_at", "2015-11-12 08:22:49.114313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:22:49.127239"], ["updated_at", "2015-11-12 08:22:49.127239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:22.764986"], ["updated_at", "2015-11-12 08:28:22.764986"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:22.792389"], ["updated_at", "2015-11-12 08:28:22.792389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:22.817147"], ["updated_at", "2015-11-12 08:28:22.817147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:22.835401"], ["updated_at", "2015-11-12 08:28:22.835401"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:22.851169"], ["updated_at", "2015-11-12 08:28:22.851169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:22.866182"], ["updated_at", "2015-11-12 08:28:22.866182"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "630fc33a-6f3b-4d08-9b08-fc96d24994d2"], ["created_at", "2015-11-12 08:28:22.874792"], ["updated_at", "2015-11-12 08:28:22.874792"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "630fc33a-6f3b-4d08-9b08-fc96d24994d2"], ["created_at", "2015-11-12 08:28:22.882522"], ["updated_at", "2015-11-12 08:28:22.882522"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:22.893951"], ["updated_at", "2015-11-12 08:28:22.893951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "74999eff-49da-4871-af4e-81712de5b568"], ["created_at", "2015-11-12 08:28:22.899045"], ["updated_at", "2015-11-12 08:28:22.899045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:22.919982"], ["updated_at", "2015-11-12 08:28:22.919982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:22.946497"], ["updated_at", "2015-11-12 08:28:22.946497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-12 08:28:22.963803"], ["updated_at", "2015-11-12 08:28:22.963803"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "db712e31-290e-4c85-ba2c-f17bf44a0fbb"], ["created_at", "2015-11-12 08:28:22.965857"], ["updated_at", "2015-11-12 08:28:22.965857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:37.125182"], ["updated_at", "2015-11-12 08:28:37.125182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:37.150280"], ["updated_at", "2015-11-12 08:28:37.150280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:37.168146"], ["updated_at", "2015-11-12 08:28:37.168146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:37.189885"], ["updated_at", "2015-11-12 08:28:37.189885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:37.202716"], ["updated_at", "2015-11-12 08:28:37.202716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:37.217652"], ["updated_at", "2015-11-12 08:28:37.217652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f9216d1e-42d6-41a7-8c9d-e7d62f75dd89"], ["created_at", "2015-11-12 08:28:37.223492"], ["updated_at", "2015-11-12 08:28:37.223492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f9216d1e-42d6-41a7-8c9d-e7d62f75dd89"], ["created_at", "2015-11-12 08:28:37.228272"], ["updated_at", "2015-11-12 08:28:37.228272"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:37.237999"], ["updated_at", "2015-11-12 08:28:37.237999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c1e207cd-0f1b-4566-aed3-f36c48f15269"], ["created_at", "2015-11-12 08:28:37.245793"], ["updated_at", "2015-11-12 08:28:37.245793"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:37.260709"], ["updated_at", "2015-11-12 08:28:37.260709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:37.274130"], ["updated_at", "2015-11-12 08:28:37.274130"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-12 08:28:37.292747"], ["updated_at", "2015-11-12 08:28:37.292747"]] SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ce5eafa7-ef36-4c41-af78-0cd770780d8d"], ["created_at", "2015-11-12 08:28:37.294531"], ["updated_at", "2015-11-12 08:28:37.294531"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:56.059445"], ["updated_at", "2015-11-12 08:28:56.059445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:56.082583"], ["updated_at", "2015-11-12 08:28:56.082583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:56.103658"], ["updated_at", "2015-11-12 08:28:56.103658"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:56.122339"], ["updated_at", "2015-11-12 08:28:56.122339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:56.137625"], ["updated_at", "2015-11-12 08:28:56.137625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:56.152900"], ["updated_at", "2015-11-12 08:28:56.152900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "de9d6e14-871b-4219-a2db-4906b5a3c45b"], ["created_at", "2015-11-12 08:28:56.158907"], ["updated_at", "2015-11-12 08:28:56.158907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "de9d6e14-871b-4219-a2db-4906b5a3c45b"], ["created_at", "2015-11-12 08:28:56.164282"], ["updated_at", "2015-11-12 08:28:56.164282"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:56.176155"], ["updated_at", "2015-11-12 08:28:56.176155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cb59d33a-bd29-4f61-8051-a46503dcb6e8"], ["created_at", "2015-11-12 08:28:56.182216"], ["updated_at", "2015-11-12 08:28:56.182216"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:56.200693"], ["updated_at", "2015-11-12 08:28:56.200693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:28:56.219058"], ["updated_at", "2015-11-12 08:28:56.219058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-12 08:28:56.239744"], ["updated_at", "2015-11-12 08:28:56.239744"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f98a2717-e94a-4c50-a1fa-ca1711ee3b1b"], ["created_at", "2015-11-12 08:28:56.242894"], ["updated_at", "2015-11-12 08:28:56.242894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:29:26.910145"], ["updated_at", "2015-11-12 08:29:26.910145"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:29:26.937267"], ["updated_at", "2015-11-12 08:29:26.937267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:29:26.961618"], ["updated_at", "2015-11-12 08:29:26.961618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:29:26.979430"], ["updated_at", "2015-11-12 08:29:26.979430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:29:26.993628"], ["updated_at", "2015-11-12 08:29:26.993628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:29:27.014639"], ["updated_at", "2015-11-12 08:29:27.014639"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cc4b4373-66b2-4fa0-b082-6a35421a606d"], ["created_at", "2015-11-12 08:29:27.020688"], ["updated_at", "2015-11-12 08:29:27.020688"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cc4b4373-66b2-4fa0-b082-6a35421a606d"], ["created_at", "2015-11-12 08:29:27.029507"], ["updated_at", "2015-11-12 08:29:27.029507"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:29:27.041887"], ["updated_at", "2015-11-12 08:29:27.041887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9bbfdc69-3a01-4610-b974-5a11942cdb45"], ["created_at", "2015-11-12 08:29:27.047193"], ["updated_at", "2015-11-12 08:29:27.047193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:29:27.063890"], ["updated_at", "2015-11-12 08:29:27.063890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:29:27.086258"], ["updated_at", "2015-11-12 08:29:27.086258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-12 08:29:27.103509"], ["updated_at", "2015-11-12 08:29:27.103509"]] SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f3dd58ab-bd1b-4011-bc9a-9e3bddc6fca4"], ["created_at", "2015-11-12 08:29:27.105613"], ["updated_at", "2015-11-12 08:29:27.105613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:30:10.654248"], ["updated_at", "2015-11-12 08:30:10.654248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:30:10.682227"], ["updated_at", "2015-11-12 08:30:10.682227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:30:10.702754"], ["updated_at", "2015-11-12 08:30:10.702754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:30:10.725111"], ["updated_at", "2015-11-12 08:30:10.725111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:30:10.738955"], ["updated_at", "2015-11-12 08:30:10.738955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:30:10.758733"], ["updated_at", "2015-11-12 08:30:10.758733"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2e103856-1d1c-4852-a76e-2ba3fd2056a2"], ["created_at", "2015-11-12 08:30:10.764618"], ["updated_at", "2015-11-12 08:30:10.764618"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2e103856-1d1c-4852-a76e-2ba3fd2056a2"], ["created_at", "2015-11-12 08:30:10.773121"], ["updated_at", "2015-11-12 08:30:10.773121"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:30:10.787756"], ["updated_at", "2015-11-12 08:30:10.787756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "16a9de95-832a-42f7-8f50-150089d8d1d8"], ["created_at", "2015-11-12 08:30:10.794149"], ["updated_at", "2015-11-12 08:30:10.794149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:30:10.810627"], ["updated_at", "2015-11-12 08:30:10.810627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:30:10.832055"], ["updated_at", "2015-11-12 08:30:10.832055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-12 08:30:10.849209"], ["updated_at", "2015-11-12 08:30:10.849209"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "99dcc841-dff6-4a52-b69c-20bb87389592"], ["created_at", "2015-11-12 08:30:10.851165"], ["updated_at", "2015-11-12 08:30:10.851165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:31:03.883260"], ["updated_at", "2015-11-12 08:31:03.883260"]]  (3.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "77339d7c-5dba-420d-b71e-c86d4312011b"], ["created_at", "2015-11-12 08:31:03.903574"], ["updated_at", "2015-11-12 08:31:03.903574"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 03:31:03 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:31:03.950937"], ["updated_at", "2015-11-12 08:31:03.950937"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b1564474-ef4d-465d-b7ef-22268a99224d"], ["created_at", "2015-11-12 08:31:03.960171"], ["updated_at", "2015-11-12 08:31:03.960171"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/1b22201f-7bb3-4385-96e4-e5cc861e64c9" for 127.0.0.1 at 2015-11-12 03:31:03 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"1b22201f-7bb3-4385-96e4-e5cc861e64c9"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "1b22201f-7bb3-4385-96e4-e5cc861e64c9"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b1564474-ef4d-465d-b7ef-22268a99224d"]] Completed 200 OK in 15ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:31:04.000300"], ["updated_at", "2015-11-12 08:31:04.000300"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 03:31:04 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"55a77c06-44c1-4547-bea4-7130d00ebe10"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "55a77c06-44c1-4547-bea4-7130d00ebe10"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 11ms (Views: 1.0ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:31:04.060634"], ["updated_at", "2015-11-12 08:31:04.060634"]]  (0.6ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "85f66abd-4e9e-4689-94cd-4b184e0a6ebf"], ["created_at", "2015-11-12 08:31:04.069292"], ["updated_at", "2015-11-12 08:31:04.069292"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/5c264563-bb14-4d14-a4b6-d3588e030482" for 127.0.0.1 at 2015-11-12 03:31:04 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"5c264563-bb14-4d14-a4b6-d3588e030482"}  (0.1ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5c264563-bb14-4d14-a4b6-d3588e030482"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "5c264563-bb14-4d14-a4b6-d3588e030482"]]  (0.5ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:31:04.094587"], ["updated_at", "2015-11-12 08:31:04.094587"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c9e6c34a-87b3-44f2-a2b1-f57efc073370"], ["created_at", "2015-11-12 08:31:04.104558"], ["updated_at", "2015-11-12 08:31:04.104558"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/articles/37b8e200-a818-4d83-8131-affdbe06ca95" for 127.0.0.1 at 2015-11-12 03:31:04 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"37b8e200-a818-4d83-8131-affdbe06ca95", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"37b8e200-a818-4d83-8131-affdbe06ca95"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "37b8e200-a818-4d83-8131-affdbe06ca95"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c9e6c34a-87b3-44f2-a2b1-f57efc073370"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '37b8e200-a818-4d83-8131-affdbe06ca95') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '37b8e200-a818-4d83-8131-affdbe06ca95') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-12 08:31:04.124171"], ["id", "37b8e200-a818-4d83-8131-affdbe06ca95"]]  (0.6ms) COMMIT Completed 200 OK in 17ms (Views: 0.9ms | ActiveRecord: 3.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "37b8e200-a818-4d83-8131-affdbe06ca95"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:32:18.754462"], ["updated_at", "2015-11-12 08:32:18.754462"]]  (3.6ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "be781772-3b7a-41f5-91f8-686d80570a00"], ["created_at", "2015-11-12 08:32:18.772453"], ["updated_at", "2015-11-12 08:32:18.772453"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 03:32:18 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:32:18.817126"], ["updated_at", "2015-11-12 08:32:18.817126"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f11e3d2f-d513-4a7d-8f89-9c2982f6091a"], ["created_at", "2015-11-12 08:32:18.822524"], ["updated_at", "2015-11-12 08:32:18.822524"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/403d224e-30f0-42f0-96ed-81ecdd95625a" for 127.0.0.1 at 2015-11-12 03:32:18 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"403d224e-30f0-42f0-96ed-81ecdd95625a"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "403d224e-30f0-42f0-96ed-81ecdd95625a"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f11e3d2f-d513-4a7d-8f89-9c2982f6091a"]] Completed 200 OK in 18ms (Views: 1.4ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 08:32:18.861842"], ["updated_at", "2015-11-12 08:32:18.861842"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 03:32:18 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"5566c610-13f8-4d7e-8d34-3511de9759a3"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5566c610-13f8-4d7e-8d34-3511de9759a3"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:25:57.884691"], ["updated_at", "2015-11-12 17:25:57.884691"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "bc64cd54-c71f-4b64-8151-d346f1f57ce5"], ["created_at", "2015-11-12 17:25:57.890957"], ["updated_at", "2015-11-12 17:25:57.890957"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/196d0aef-abd7-4230-ba1b-0298c8cccc66" for 127.0.0.1 at 2015-11-12 12:25:57 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"196d0aef-abd7-4230-ba1b-0298c8cccc66"}  (0.2ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "196d0aef-abd7-4230-ba1b-0298c8cccc66"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "196d0aef-abd7-4230-ba1b-0298c8cccc66"]]  (0.3ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:25:57.914405"], ["updated_at", "2015-11-12 17:25:57.914405"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d30a4e85-025b-49e2-8ba0-55b4ab70aef1"], ["created_at", "2015-11-12 17:25:57.921309"], ["updated_at", "2015-11-12 17:25:57.921309"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/740bb7e2-2db9-4662-a790-fb38941f65e7" for 127.0.0.1 at 2015-11-12 12:25:57 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"740bb7e2-2db9-4662-a790-fb38941f65e7", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"740bb7e2-2db9-4662-a790-fb38941f65e7"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "740bb7e2-2db9-4662-a790-fb38941f65e7"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "d30a4e85-025b-49e2-8ba0-55b4ab70aef1"]] Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '740bb7e2-2db9-4662-a790-fb38941f65e7') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '740bb7e2-2db9-4662-a790-fb38941f65e7') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-12 17:25:57.936736"], ["id", "740bb7e2-2db9-4662-a790-fb38941f65e7"]]  (0.5ms) COMMIT Completed 200 OK in 17ms (Views: 0.8ms | ActiveRecord: 3.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "740bb7e2-2db9-4662-a790-fb38941f65e7"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:26:02.484054"], ["updated_at", "2015-11-12 17:26:02.484054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:26:02.508622"], ["updated_at", "2015-11-12 17:26:02.508622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:26:02.529064"], ["updated_at", "2015-11-12 17:26:02.529064"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:26:02.548843"], ["updated_at", "2015-11-12 17:26:02.548843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:26:02.562733"], ["updated_at", "2015-11-12 17:26:02.562733"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:26:02.580975"], ["updated_at", "2015-11-12 17:26:02.580975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c952b92d-8956-4f0a-b7a7-00c363656bed"], ["created_at", "2015-11-12 17:26:02.586538"], ["updated_at", "2015-11-12 17:26:02.586538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c952b92d-8956-4f0a-b7a7-00c363656bed"], ["created_at", "2015-11-12 17:26:02.593152"], ["updated_at", "2015-11-12 17:26:02.593152"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:26:02.603560"], ["updated_at", "2015-11-12 17:26:02.603560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "55a60ff9-4a24-49c5-ba53-502f5d34d1eb"], ["created_at", "2015-11-12 17:26:02.608852"], ["updated_at", "2015-11-12 17:26:02.608852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:26:02.622560"], ["updated_at", "2015-11-12 17:26:02.622560"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-12 17:26:02.635265"], ["updated_at", "2015-11-12 17:26:02.635265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-12 17:26:02.655708"], ["updated_at", "2015-11-12 17:26:02.655708"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4220c5f3-9407-4313-b351-f9036ec2c3a7"], ["created_at", "2015-11-12 17:26:02.657508"], ["updated_at", "2015-11-12 17:26:02.657508"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (4.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.0ms) BEGIN Strain::Variant Exists (13.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (61.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 03:56:50.251935"], ["updated_at", "2015-11-13 03:56:50.251935"]]  (1.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6c5f1ede-2481-4039-8289-1c31dc989ec6"], ["created_at", "2015-11-13 03:56:50.332759"], ["updated_at", "2015-11-13 03:56:50.332759"]]  (0.8ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 22:56:50 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (3.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 3.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 03:56:50.387832"], ["updated_at", "2015-11-13 03:56:50.387832"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "51e67361-cb35-4428-a1b9-890652e0d32f"], ["created_at", "2015-11-13 03:56:50.396876"], ["updated_at", "2015-11-13 03:56:50.396876"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/72c268df-1127-4591-ab54-defc4a786acb" for 127.0.0.1 at 2015-11-12 22:56:50 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"72c268df-1127-4591-ab54-defc4a786acb"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "72c268df-1127-4591-ab54-defc4a786acb"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "51e67361-cb35-4428-a1b9-890652e0d32f"]] Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 03:56:50.438818"], ["updated_at", "2015-11-13 03:56:50.438818"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 22:56:50 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"84f2bc1f-ff91-47a4-b7d7-63ee91f2fe69"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "84f2bc1f-ff91-47a4-b7d7-63ee91f2fe69"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 03:56:52.513741"], ["updated_at", "2015-11-13 03:56:52.513741"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "44715b8f-a3a9-4595-9854-2b0b261c1c25"], ["created_at", "2015-11-13 03:56:52.521127"], ["updated_at", "2015-11-13 03:56:52.521127"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/articles/b41f43ff-bc3b-49c7-bbb4-8fd4a1d86ad5" for 127.0.0.1 at 2015-11-12 22:56:52 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"b41f43ff-bc3b-49c7-bbb4-8fd4a1d86ad5"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "b41f43ff-bc3b-49c7-bbb4-8fd4a1d86ad5"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "b41f43ff-bc3b-49c7-bbb4-8fd4a1d86ad5"]]  (0.5ms) COMMIT Completed 204 No Content in 6ms (Views: 0.3ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 03:56:52.550669"], ["updated_at", "2015-11-13 03:56:52.550669"]]  (0.6ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "412e865a-15f8-421b-80ab-1066fccb02d2"], ["created_at", "2015-11-13 03:56:52.557316"], ["updated_at", "2015-11-13 03:56:52.557316"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/587e3233-73ff-4621-a081-6da47b90c5e6" for 127.0.0.1 at 2015-11-12 22:56:52 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"587e3233-73ff-4621-a081-6da47b90c5e6", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"587e3233-73ff-4621-a081-6da47b90c5e6"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "587e3233-73ff-4621-a081-6da47b90c5e6"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "412e865a-15f8-421b-80ab-1066fccb02d2"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '587e3233-73ff-4621-a081-6da47b90c5e6') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '587e3233-73ff-4621-a081-6da47b90c5e6') LIMIT 1 SQL (3.2ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 03:56:52.572175"], ["id", "587e3233-73ff-4621-a081-6da47b90c5e6"]]  (0.4ms) COMMIT Completed 200 OK in 20ms (Views: 1.1ms | ActiveRecord: 5.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "587e3233-73ff-4621-a081-6da47b90c5e6"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 03:58:19.874788"], ["updated_at", "2015-11-13 03:58:19.874788"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5a8920a6-f6e3-4790-bbd5-c9d598a000ab"], ["created_at", "2015-11-13 03:58:19.891159"], ["updated_at", "2015-11-13 03:58:19.891159"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 22:58:19 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.3ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 03:58:19.934209"], ["updated_at", "2015-11-13 03:58:19.934209"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5941284f-466d-40a0-9313-fc0683ad128e"], ["created_at", "2015-11-13 03:58:19.940658"], ["updated_at", "2015-11-13 03:58:19.940658"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/b31e67af-0eb5-4330-ab59-9ca6f088a1fd" for 127.0.0.1 at 2015-11-12 22:58:19 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"b31e67af-0eb5-4330-ab59-9ca6f088a1fd"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "b31e67af-0eb5-4330-ab59-9ca6f088a1fd"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5941284f-466d-40a0-9313-fc0683ad128e"]] Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 0.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 03:58:19.977190"], ["updated_at", "2015-11-13 03:58:19.977190"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 22:58:19 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"slug"=>"test", "title"=>"test", "body"=>{"beep"=>"quack"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"69fbef52-4d08-4f41-9335-061c44f42b1d"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "69fbef52-4d08-4f41-9335-061c44f42b1d"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:28.846046"], ["updated_at", "2015-11-13 04:01:28.846046"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e7f1c651-8bd4-48ae-96c5-cf967eb01cd2"], ["created_at", "2015-11-13 04:01:28.853588"], ["updated_at", "2015-11-13 04:01:28.853588"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/fefefa61-7839-4dbf-b9c1-74211c918fa8" for 127.0.0.1 at 2015-11-12 23:01:28 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"fefefa61-7839-4dbf-b9c1-74211c918fa8"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "fefefa61-7839-4dbf-b9c1-74211c918fa8"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "fefefa61-7839-4dbf-b9c1-74211c918fa8"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:28.881895"], ["updated_at", "2015-11-13 04:01:28.881895"]]  (0.3ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "507577e6-b61d-4429-aebc-d993ec83c976"], ["created_at", "2015-11-13 04:01:28.889078"], ["updated_at", "2015-11-13 04:01:28.889078"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/2daa971a-2d1c-4dd3-9a1a-3573d2b02ef0" for 127.0.0.1 at 2015-11-12 23:01:28 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"2daa971a-2d1c-4dd3-9a1a-3573d2b02ef0", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"2daa971a-2d1c-4dd3-9a1a-3573d2b02ef0"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2daa971a-2d1c-4dd3-9a1a-3573d2b02ef0"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "507577e6-b61d-4429-aebc-d993ec83c976"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '2daa971a-2d1c-4dd3-9a1a-3573d2b02ef0') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '2daa971a-2d1c-4dd3-9a1a-3573d2b02ef0') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:01:28.902111"], ["id", "2daa971a-2d1c-4dd3-9a1a-3573d2b02ef0"]]  (0.3ms) COMMIT Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "2daa971a-2d1c-4dd3-9a1a-3573d2b02ef0"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:35.272006"], ["updated_at", "2015-11-13 04:01:35.272006"]]  (1.1ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "43d5e48f-62ad-4884-8da7-6fd36e80bb21"], ["created_at", "2015-11-13 04:01:35.288825"], ["updated_at", "2015-11-13 04:01:35.288825"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:01:35 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:35.341698"], ["updated_at", "2015-11-13 04:01:35.341698"]]  (0.4ms) COMMIT  (0.3ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ac31b6c8-83b1-4e70-9299-27a8e9da4beb"], ["created_at", "2015-11-13 04:01:35.348319"], ["updated_at", "2015-11-13 04:01:35.348319"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/68ceb99b-83b2-41da-89a1-1a0d4af69d56" for 127.0.0.1 at 2015-11-12 23:01:35 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"68ceb99b-83b2-41da-89a1-1a0d4af69d56"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "68ceb99b-83b2-41da-89a1-1a0d4af69d56"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ac31b6c8-83b1-4e70-9299-27a8e9da4beb"]] Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:35.386970"], ["updated_at", "2015-11-13 04:01:35.386970"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:01:35 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"summary"=>"test_summary", "main"=>"test_main"}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"73b53bc8-2e5c-401f-a2a3-ce2a449872a1"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"} Filter chain halted as :setup_request rendered or redirected Completed 400 Bad Request in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:37.120232"], ["updated_at", "2015-11-13 04:01:37.120232"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5a4af019-e8c3-448b-8490-10de2e430ade"], ["created_at", "2015-11-13 04:01:37.130735"], ["updated_at", "2015-11-13 04:01:37.130735"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/articles/304761c1-23b4-4fa9-bc71-0a6d8a15b208" for 127.0.0.1 at 2015-11-12 23:01:37 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"304761c1-23b4-4fa9-bc71-0a6d8a15b208"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "304761c1-23b4-4fa9-bc71-0a6d8a15b208"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "304761c1-23b4-4fa9-bc71-0a6d8a15b208"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:37.157965"], ["updated_at", "2015-11-13 04:01:37.157965"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e813d828-af7c-4c59-a3ec-2de36a5b7e84"], ["created_at", "2015-11-13 04:01:37.164516"], ["updated_at", "2015-11-13 04:01:37.164516"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/0ea67bfd-4d30-4273-9823-3f465a48bd64" for 127.0.0.1 at 2015-11-12 23:01:37 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"0ea67bfd-4d30-4273-9823-3f465a48bd64", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"0ea67bfd-4d30-4273-9823-3f465a48bd64"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "0ea67bfd-4d30-4273-9823-3f465a48bd64"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e813d828-af7c-4c59-a3ec-2de36a5b7e84"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '0ea67bfd-4d30-4273-9823-3f465a48bd64') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '0ea67bfd-4d30-4273-9823-3f465a48bd64') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:01:37.180058"], ["id", "0ea67bfd-4d30-4273-9823-3f465a48bd64"]]  (0.3ms) COMMIT Completed 200 OK in 19ms (Views: 1.6ms | ActiveRecord: 2.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "0ea67bfd-4d30-4273-9823-3f465a48bd64"]]  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:52.608675"], ["updated_at", "2015-11-13 04:01:52.608675"]]  (3.3ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (1.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1ac8952f-e228-40ab-b1cf-d648e189a6df"], ["created_at", "2015-11-13 04:01:52.632051"], ["updated_at", "2015-11-13 04:01:52.632051"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:01:52 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:52.683146"], ["updated_at", "2015-11-13 04:01:52.683146"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "bd710d16-0e24-44fb-ad0e-55e0e7d0ce9e"], ["created_at", "2015-11-13 04:01:52.691169"], ["updated_at", "2015-11-13 04:01:52.691169"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/87f278a4-e9af-4c87-9c61-d30dbefb33aa" for 127.0.0.1 at 2015-11-12 23:01:52 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"87f278a4-e9af-4c87-9c61-d30dbefb33aa"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "87f278a4-e9af-4c87-9c61-d30dbefb33aa"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "bd710d16-0e24-44fb-ad0e-55e0e7d0ce9e"]] Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (1.0ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:52.727076"], ["updated_at", "2015-11-13 04:01:52.727076"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:01:52 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"summary"=>"test_summary", "main"=>"test_main"}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"306243e2-b1fb-4996-b21a-e5fbca115d10"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"} Filter chain halted as :setup_request rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:52.762819"], ["updated_at", "2015-11-13 04:01:52.762819"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a1da6244-44ac-47fd-acdf-d58c1ed1715e"], ["created_at", "2015-11-13 04:01:52.769487"], ["updated_at", "2015-11-13 04:01:52.769487"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/556d29f4-52f2-4cae-b30b-724084e54a4d" for 127.0.0.1 at 2015-11-12 23:01:52 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"556d29f4-52f2-4cae-b30b-724084e54a4d"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "556d29f4-52f2-4cae-b30b-724084e54a4d"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "556d29f4-52f2-4cae-b30b-724084e54a4d"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:52.799428"], ["updated_at", "2015-11-13 04:01:52.799428"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4e20b626-0a6a-4ace-8a99-0191242b70a6"], ["created_at", "2015-11-13 04:01:52.806656"], ["updated_at", "2015-11-13 04:01:52.806656"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/d156e780-48e3-494a-b289-78b4a47beb4f" for 127.0.0.1 at 2015-11-12 23:01:52 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"d156e780-48e3-494a-b289-78b4a47beb4f", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"d156e780-48e3-494a-b289-78b4a47beb4f"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "d156e780-48e3-494a-b289-78b4a47beb4f"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4e20b626-0a6a-4ace-8a99-0191242b70a6"]] Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'd156e780-48e3-494a-b289-78b4a47beb4f') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'd156e780-48e3-494a-b289-78b4a47beb4f') LIMIT 1 SQL (0.5ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:01:52.824213"], ["id", "d156e780-48e3-494a-b289-78b4a47beb4f"]]  (0.5ms) COMMIT Completed 200 OK in 19ms (Views: 0.8ms | ActiveRecord: 3.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "d156e780-48e3-494a-b289-78b4a47beb4f"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:59.667691"], ["updated_at", "2015-11-13 04:01:59.667691"]]  (3.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e2d03c28-3ce7-476e-ae61-ebafb0cc4f66"], ["created_at", "2015-11-13 04:01:59.690264"], ["updated_at", "2015-11-13 04:01:59.690264"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:01:59 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.9ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:59.735651"], ["updated_at", "2015-11-13 04:01:59.735651"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "42e92841-606c-4ea9-a735-b399ffd5a0b1"], ["created_at", "2015-11-13 04:01:59.741159"], ["updated_at", "2015-11-13 04:01:59.741159"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/ff381aad-6405-4447-9b48-9b2edbb18d7d" for 127.0.0.1 at 2015-11-12 23:01:59 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"ff381aad-6405-4447-9b48-9b2edbb18d7d"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ff381aad-6405-4447-9b48-9b2edbb18d7d"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "42e92841-606c-4ea9-a735-b399ffd5a0b1"]] Completed 200 OK in 16ms (Views: 1.5ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:59.779938"], ["updated_at", "2015-11-13 04:01:59.779938"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:01:59 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"summary"=>"test_summary", "main"=>"test_main"}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"cd208e4c-486e-4366-85a3-4604f193f5e3"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"} Filter chain halted as :setup_request rendered or redirected Completed 400 Bad Request in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:59.816287"], ["updated_at", "2015-11-13 04:01:59.816287"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "45196a7e-3cf2-4c39-b881-e3673b0b4fb1"], ["created_at", "2015-11-13 04:01:59.822321"], ["updated_at", "2015-11-13 04:01:59.822321"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/e5105e02-6aa3-4d62-912b-246f4f1d07ee" for 127.0.0.1 at 2015-11-12 23:01:59 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"e5105e02-6aa3-4d62-912b-246f4f1d07ee"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e5105e02-6aa3-4d62-912b-246f4f1d07ee"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "e5105e02-6aa3-4d62-912b-246f4f1d07ee"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:01:59.844812"], ["updated_at", "2015-11-13 04:01:59.844812"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "63beeb8b-9ff2-4b1a-b574-425de31046c5"], ["created_at", "2015-11-13 04:01:59.852307"], ["updated_at", "2015-11-13 04:01:59.852307"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/3dcd4a7c-f40b-4fc2-8ed4-c8ab4971e56f" for 127.0.0.1 at 2015-11-12 23:01:59 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"3dcd4a7c-f40b-4fc2-8ed4-c8ab4971e56f", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"3dcd4a7c-f40b-4fc2-8ed4-c8ab4971e56f"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3dcd4a7c-f40b-4fc2-8ed4-c8ab4971e56f"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "63beeb8b-9ff2-4b1a-b574-425de31046c5"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '3dcd4a7c-f40b-4fc2-8ed4-c8ab4971e56f') LIMIT 1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '3dcd4a7c-f40b-4fc2-8ed4-c8ab4971e56f') LIMIT 1 SQL (0.5ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:01:59.868804"], ["id", "3dcd4a7c-f40b-4fc2-8ed4-c8ab4971e56f"]]  (0.5ms) COMMIT Completed 200 OK in 20ms (Views: 1.2ms | ActiveRecord: 3.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "3dcd4a7c-f40b-4fc2-8ed4-c8ab4971e56f"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:02:10.372374"], ["updated_at", "2015-11-13 04:02:10.372374"]]  (3.1ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "604bb1b7-69e1-4256-846e-e63cd3fee97a"], ["created_at", "2015-11-13 04:02:10.390919"], ["updated_at", "2015-11-13 04:02:10.390919"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:02:10 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 2.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:02:10.437921"], ["updated_at", "2015-11-13 04:02:10.437921"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "23fbe332-1cad-4a54-9324-7c7e17e189c4"], ["created_at", "2015-11-13 04:02:10.447058"], ["updated_at", "2015-11-13 04:02:10.447058"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/948f9dc3-bc00-46e2-bb89-a59a71d3d175" for 127.0.0.1 at 2015-11-12 23:02:10 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"948f9dc3-bc00-46e2-bb89-a59a71d3d175"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "948f9dc3-bc00-46e2-bb89-a59a71d3d175"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "23fbe332-1cad-4a54-9324-7c7e17e189c4"]] Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:02:10.491531"], ["updated_at", "2015-11-13 04:02:10.491531"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:02:10 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"summary"=>"test_summary", "main"=>"test_main"}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"65dbb4ef-d339-4d0a-be09-94a058eac59b"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"} Filter chain halted as :setup_request rendered or redirected Completed 400 Bad Request in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:01.708440"], ["updated_at", "2015-11-13 04:06:01.708440"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0f9f4b10-7455-4f33-b37c-05b9b3e4b0b7"], ["created_at", "2015-11-13 04:06:01.715629"], ["updated_at", "2015-11-13 04:06:01.715629"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/2db19f19-f5f7-49a0-a7fd-0019d3bd9262" for 127.0.0.1 at 2015-11-12 23:06:01 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"2db19f19-f5f7-49a0-a7fd-0019d3bd9262"}  (0.1ms) BEGIN Strain::Article Load (0.6ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2db19f19-f5f7-49a0-a7fd-0019d3bd9262"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "2db19f19-f5f7-49a0-a7fd-0019d3bd9262"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:01.742589"], ["updated_at", "2015-11-13 04:06:01.742589"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c02ed456-4b70-4fcc-a174-f9682386d2c7"], ["created_at", "2015-11-13 04:06:01.749214"], ["updated_at", "2015-11-13 04:06:01.749214"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/9f7d884a-e18a-416f-8aa7-7e9d26438b9b" for 127.0.0.1 at 2015-11-12 23:06:01 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"9f7d884a-e18a-416f-8aa7-7e9d26438b9b", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"9f7d884a-e18a-416f-8aa7-7e9d26438b9b"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "9f7d884a-e18a-416f-8aa7-7e9d26438b9b"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c02ed456-4b70-4fcc-a174-f9682386d2c7"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '9f7d884a-e18a-416f-8aa7-7e9d26438b9b') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '9f7d884a-e18a-416f-8aa7-7e9d26438b9b') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:06:01.763885"], ["id", "9f7d884a-e18a-416f-8aa7-7e9d26438b9b"]]  (0.5ms) COMMIT Completed 200 OK in 17ms (Views: 1.0ms | ActiveRecord: 2.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "9f7d884a-e18a-416f-8aa7-7e9d26438b9b"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:06.440932"], ["updated_at", "2015-11-13 04:06:06.440932"]]  (0.8ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "213fe6fc-bc1a-408f-8cf0-9c9faa979516"], ["created_at", "2015-11-13 04:06:06.457470"], ["updated_at", "2015-11-13 04:06:06.457470"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:06:06 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:06.502794"], ["updated_at", "2015-11-13 04:06:06.502794"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fdf80a4d-a0cf-48cf-a529-fa9e24d3d690"], ["created_at", "2015-11-13 04:06:06.510632"], ["updated_at", "2015-11-13 04:06:06.510632"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/ed94d47b-3035-4651-905d-b6d2f46a1676" for 127.0.0.1 at 2015-11-12 23:06:06 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"ed94d47b-3035-4651-905d-b6d2f46a1676"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ed94d47b-3035-4651-905d-b6d2f46a1676"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fdf80a4d-a0cf-48cf-a529-fa9e24d3d690"]] Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:06.550993"], ["updated_at", "2015-11-13 04:06:06.550993"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:06:06 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"2bc1c5a3-f70b-4180-8c8d-382c589f1cf8"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2bc1c5a3-f70b-4180-8c8d-382c589f1cf8"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 15ms (Views: 0.6ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:06.597728"], ["updated_at", "2015-11-13 04:06:06.597728"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a05b1a21-6bd9-4183-927a-3312d107102a"], ["created_at", "2015-11-13 04:06:06.607184"], ["updated_at", "2015-11-13 04:06:06.607184"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/00dbc51d-7412-41aa-8cff-1efb1dbde886" for 127.0.0.1 at 2015-11-12 23:06:06 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"00dbc51d-7412-41aa-8cff-1efb1dbde886"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "00dbc51d-7412-41aa-8cff-1efb1dbde886"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "00dbc51d-7412-41aa-8cff-1efb1dbde886"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:06.634499"], ["updated_at", "2015-11-13 04:06:06.634499"]]  (0.6ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "64c574d7-43aa-456a-aea2-62c6d0ed15f0"], ["created_at", "2015-11-13 04:06:06.642334"], ["updated_at", "2015-11-13 04:06:06.642334"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/ece087b9-d39c-4e93-acbe-45899eb9ad25" for 127.0.0.1 at 2015-11-12 23:06:06 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"ece087b9-d39c-4e93-acbe-45899eb9ad25", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"ece087b9-d39c-4e93-acbe-45899eb9ad25"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ece087b9-d39c-4e93-acbe-45899eb9ad25"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "64c574d7-43aa-456a-aea2-62c6d0ed15f0"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'ece087b9-d39c-4e93-acbe-45899eb9ad25') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'ece087b9-d39c-4e93-acbe-45899eb9ad25') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:06:06.655288"], ["id", "ece087b9-d39c-4e93-acbe-45899eb9ad25"]]  (0.4ms) COMMIT Completed 200 OK in 15ms (Views: 1.1ms | ActiveRecord: 2.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "ece087b9-d39c-4e93-acbe-45899eb9ad25"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:09.659721"], ["updated_at", "2015-11-13 04:06:09.659721"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "56ff34f9-d648-4feb-8e4e-e8c01fce99fa"], ["created_at", "2015-11-13 04:06:09.681638"], ["updated_at", "2015-11-13 04:06:09.681638"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:06:09 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.3ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:09.725286"], ["updated_at", "2015-11-13 04:06:09.725286"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d38cba85-3106-413e-b833-9749cff82f24"], ["created_at", "2015-11-13 04:06:09.730970"], ["updated_at", "2015-11-13 04:06:09.730970"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/3e4a8fdb-9755-4114-9b7d-aad5733aa80f" for 127.0.0.1 at 2015-11-12 23:06:09 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"3e4a8fdb-9755-4114-9b7d-aad5733aa80f"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3e4a8fdb-9755-4114-9b7d-aad5733aa80f"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "d38cba85-3106-413e-b833-9749cff82f24"]] Completed 200 OK in 16ms (Views: 1.4ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:09.770114"], ["updated_at", "2015-11-13 04:06:09.770114"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:06:09 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"68651e0c-1c7d-43ca-897e-7870da7a62d5"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "68651e0c-1c7d-43ca-897e-7870da7a62d5"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 18ms (Views: 0.5ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:09.819068"], ["updated_at", "2015-11-13 04:06:09.819068"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e83f1c0d-7794-40a9-af7b-b0fbb20ba255"], ["created_at", "2015-11-13 04:06:09.825454"], ["updated_at", "2015-11-13 04:06:09.825454"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/34ec4706-04f8-475f-801c-90fed9e31d30" for 127.0.0.1 at 2015-11-12 23:06:09 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"34ec4706-04f8-475f-801c-90fed9e31d30"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "34ec4706-04f8-475f-801c-90fed9e31d30"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "34ec4706-04f8-475f-801c-90fed9e31d30"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:09.848977"], ["updated_at", "2015-11-13 04:06:09.848977"]]  (0.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "92c5e5dc-dc5c-4c43-b76b-0a7941e344d7"], ["created_at", "2015-11-13 04:06:09.858353"], ["updated_at", "2015-11-13 04:06:09.858353"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/5f9315b3-5056-4c49-bba3-dab68f01911e" for 127.0.0.1 at 2015-11-12 23:06:09 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"5f9315b3-5056-4c49-bba3-dab68f01911e", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"5f9315b3-5056-4c49-bba3-dab68f01911e"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5f9315b3-5056-4c49-bba3-dab68f01911e"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "92c5e5dc-dc5c-4c43-b76b-0a7941e344d7"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5f9315b3-5056-4c49-bba3-dab68f01911e') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5f9315b3-5056-4c49-bba3-dab68f01911e') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:06:09.873207"], ["id", "5f9315b3-5056-4c49-bba3-dab68f01911e"]]  (0.5ms) COMMIT Completed 200 OK in 15ms (Views: 0.9ms | ActiveRecord: 2.7ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "5f9315b3-5056-4c49-bba3-dab68f01911e"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:22.076396"], ["updated_at", "2015-11-13 04:06:22.076396"]]  (3.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "594182c1-7123-4185-b95e-4607fd7d4e62"], ["created_at", "2015-11-13 04:06:22.095265"], ["updated_at", "2015-11-13 04:06:22.095265"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:06:22 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:22.142999"], ["updated_at", "2015-11-13 04:06:22.142999"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fe63e6d6-7f4a-4eee-bb35-a2b287e76448"], ["created_at", "2015-11-13 04:06:22.152048"], ["updated_at", "2015-11-13 04:06:22.152048"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/3e8f2570-340b-4ff1-b7c0-0a76596dc7f2" for 127.0.0.1 at 2015-11-12 23:06:22 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"3e8f2570-340b-4ff1-b7c0-0a76596dc7f2"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3e8f2570-340b-4ff1-b7c0-0a76596dc7f2"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fe63e6d6-7f4a-4eee-bb35-a2b287e76448"]] Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:06:22.190157"], ["updated_at", "2015-11-13 04:06:22.190157"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:06:22 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"6d6fc73d-de27-4c5b-a5db-cc0c77b34737"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6d6fc73d-de27-4c5b-a5db-cc0c77b34737"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 12ms (Views: 0.6ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:00.862496"], ["updated_at", "2015-11-13 04:07:00.862496"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "26b260ab-3673-4f20-bfae-5631b000e12b"], ["created_at", "2015-11-13 04:07:00.871906"], ["updated_at", "2015-11-13 04:07:00.871906"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/b7933501-7ce1-427e-b3ef-68feb69a4950" for 127.0.0.1 at 2015-11-12 23:07:00 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"b7933501-7ce1-427e-b3ef-68feb69a4950"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "b7933501-7ce1-427e-b3ef-68feb69a4950"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "b7933501-7ce1-427e-b3ef-68feb69a4950"]]  (0.6ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:00.900230"], ["updated_at", "2015-11-13 04:07:00.900230"]]  (0.6ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "29d26d96-6512-4216-98cc-1d6ad51d7a5e"], ["created_at", "2015-11-13 04:07:00.907960"], ["updated_at", "2015-11-13 04:07:00.907960"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/d9f09034-211f-41cc-ae37-5c4ef2039d26" for 127.0.0.1 at 2015-11-12 23:07:00 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"d9f09034-211f-41cc-ae37-5c4ef2039d26", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"d9f09034-211f-41cc-ae37-5c4ef2039d26"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "d9f09034-211f-41cc-ae37-5c4ef2039d26"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "29d26d96-6512-4216-98cc-1d6ad51d7a5e"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'd9f09034-211f-41cc-ae37-5c4ef2039d26') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'd9f09034-211f-41cc-ae37-5c4ef2039d26') LIMIT 1 SQL (0.6ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:07:00.920943"], ["id", "d9f09034-211f-41cc-ae37-5c4ef2039d26"]]  (0.6ms) COMMIT Completed 200 OK in 15ms (Views: 0.9ms | ActiveRecord: 2.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "d9f09034-211f-41cc-ae37-5c4ef2039d26"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:11.945562"], ["updated_at", "2015-11-13 04:07:11.945562"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9ca674eb-3f12-4f33-a683-a6d6e30b1dfe"], ["created_at", "2015-11-13 04:07:11.961833"], ["updated_at", "2015-11-13 04:07:11.961833"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:07:11 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 2.5ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:12.011952"], ["updated_at", "2015-11-13 04:07:12.011952"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0dfd2f18-3dbd-4fbb-a428-2d458af47eae"], ["created_at", "2015-11-13 04:07:12.020563"], ["updated_at", "2015-11-13 04:07:12.020563"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/5383d6d4-e8aa-40c4-9106-2d067d28d152" for 127.0.0.1 at 2015-11-12 23:07:12 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"5383d6d4-e8aa-40c4-9106-2d067d28d152"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5383d6d4-e8aa-40c4-9106-2d067d28d152"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "0dfd2f18-3dbd-4fbb-a428-2d458af47eae"]] Completed 200 OK in 16ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:12.060078"], ["updated_at", "2015-11-13 04:07:12.060078"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:07:12 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test_title", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"873bd3e5-0ee5-47d9-9560-41e69c2838ce"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "873bd3e5-0ee5-47d9-9560-41e69c2838ce"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 18ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (3.5ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:15.114673"], ["updated_at", "2015-11-13 04:07:15.114673"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2883a774-5d8d-4601-98d7-20f2bad6bf89"], ["created_at", "2015-11-13 04:07:15.124332"], ["updated_at", "2015-11-13 04:07:15.124332"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/0bed3fb3-1360-461e-bce6-66999ddeed12" for 127.0.0.1 at 2015-11-12 23:07:15 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"0bed3fb3-1360-461e-bce6-66999ddeed12"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "0bed3fb3-1360-461e-bce6-66999ddeed12"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "0bed3fb3-1360-461e-bce6-66999ddeed12"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:15.147161"], ["updated_at", "2015-11-13 04:07:15.147161"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f22e11ba-6b71-4d18-b979-8d46f94ddbba"], ["created_at", "2015-11-13 04:07:15.153673"], ["updated_at", "2015-11-13 04:07:15.153673"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/19d37919-a36b-4dc6-9628-a7555cc05d7d" for 127.0.0.1 at 2015-11-12 23:07:15 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"19d37919-a36b-4dc6-9628-a7555cc05d7d", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"19d37919-a36b-4dc6-9628-a7555cc05d7d"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "19d37919-a36b-4dc6-9628-a7555cc05d7d"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f22e11ba-6b71-4d18-b979-8d46f94ddbba"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '19d37919-a36b-4dc6-9628-a7555cc05d7d') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '19d37919-a36b-4dc6-9628-a7555cc05d7d') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:07:15.166032"], ["id", "19d37919-a36b-4dc6-9628-a7555cc05d7d"]]  (0.5ms) COMMIT Completed 200 OK in 15ms (Views: 1.3ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "19d37919-a36b-4dc6-9628-a7555cc05d7d"]]  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:39.826019"], ["updated_at", "2015-11-13 04:07:39.826019"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fe0dbd4c-ed3b-444a-9bda-2f297c38acc2"], ["created_at", "2015-11-13 04:07:39.842757"], ["updated_at", "2015-11-13 04:07:39.842757"]]  (0.7ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:07:39 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:39.885831"], ["updated_at", "2015-11-13 04:07:39.885831"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8b079869-64c8-4d0d-9489-112d34f6034d"], ["created_at", "2015-11-13 04:07:39.890907"], ["updated_at", "2015-11-13 04:07:39.890907"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/f5d9d407-0c20-43ab-bea4-dbbe14e23fb8" for 127.0.0.1 at 2015-11-12 23:07:39 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"f5d9d407-0c20-43ab-bea4-dbbe14e23fb8"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f5d9d407-0c20-43ab-bea4-dbbe14e23fb8"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "8b079869-64c8-4d0d-9489-112d34f6034d"]] Completed 200 OK in 17ms (Views: 1.3ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:39.929154"], ["updated_at", "2015-11-13 04:07:39.929154"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:07:39 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test_title", "slug"=>"test_slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"47f1f1c1-8362-429d-a211-b80db4ab4e00"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "47f1f1c1-8362-429d-a211-b80db4ab4e00"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test_slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 15ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:41.378931"], ["updated_at", "2015-11-13 04:07:41.378931"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2c5fdbef-aef2-412c-aca0-a4cd21cea468"], ["created_at", "2015-11-13 04:07:41.385183"], ["updated_at", "2015-11-13 04:07:41.385183"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/ab05eed9-c702-416d-a9ce-e228f41c2484" for 127.0.0.1 at 2015-11-12 23:07:41 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"ab05eed9-c702-416d-a9ce-e228f41c2484"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ab05eed9-c702-416d-a9ce-e228f41c2484"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "ab05eed9-c702-416d-a9ce-e228f41c2484"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:41.408476"], ["updated_at", "2015-11-13 04:07:41.408476"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d16f76e9-b9d0-4974-8e93-5f8acb5b521f"], ["created_at", "2015-11-13 04:07:41.414003"], ["updated_at", "2015-11-13 04:07:41.414003"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/ccdaca3a-6625-4442-b802-5df7dcf52874" for 127.0.0.1 at 2015-11-12 23:07:41 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"ccdaca3a-6625-4442-b802-5df7dcf52874", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"ccdaca3a-6625-4442-b802-5df7dcf52874"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ccdaca3a-6625-4442-b802-5df7dcf52874"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "d16f76e9-b9d0-4974-8e93-5f8acb5b521f"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'ccdaca3a-6625-4442-b802-5df7dcf52874') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'ccdaca3a-6625-4442-b802-5df7dcf52874') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:07:41.426262"], ["id", "ccdaca3a-6625-4442-b802-5df7dcf52874"]]  (0.4ms) COMMIT Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "ccdaca3a-6625-4442-b802-5df7dcf52874"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:50.512042"], ["updated_at", "2015-11-13 04:07:50.512042"]]  (3.1ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "abea4854-818a-4318-b25e-5e4f86087afd"], ["created_at", "2015-11-13 04:07:50.531504"], ["updated_at", "2015-11-13 04:07:50.531504"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:07:50 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:50.576292"], ["updated_at", "2015-11-13 04:07:50.576292"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1bd3d808-7749-4e73-8f5a-e4584f24faf8"], ["created_at", "2015-11-13 04:07:50.581988"], ["updated_at", "2015-11-13 04:07:50.581988"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/f994cc7f-7992-4bfd-ba4b-4d16bf98ce33" for 127.0.0.1 at 2015-11-12 23:07:50 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"f994cc7f-7992-4bfd-ba4b-4d16bf98ce33"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f994cc7f-7992-4bfd-ba4b-4d16bf98ce33"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1bd3d808-7749-4e73-8f5a-e4584f24faf8"]] Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:07:50.616600"], ["updated_at", "2015-11-13 04:07:50.616600"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:07:50 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test_title", "slug"=>"test_slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"4432c999-25bf-4896-8065-b961a7cf1370"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4432c999-25bf-4896-8065-b961a7cf1370"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test_slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 17ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:08:23.229340"], ["updated_at", "2015-11-13 04:08:23.229340"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e2830680-85b8-45fb-99ed-72c7252380b2"], ["created_at", "2015-11-13 04:08:23.237329"], ["updated_at", "2015-11-13 04:08:23.237329"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/articles/f102a015-1d70-48e0-8a37-14181d3c33b5" for 127.0.0.1 at 2015-11-12 23:08:23 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"f102a015-1d70-48e0-8a37-14181d3c33b5"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f102a015-1d70-48e0-8a37-14181d3c33b5"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "f102a015-1d70-48e0-8a37-14181d3c33b5"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:08:23.264332"], ["updated_at", "2015-11-13 04:08:23.264332"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fc2431f4-367d-493b-936b-14d375e38563"], ["created_at", "2015-11-13 04:08:23.271043"], ["updated_at", "2015-11-13 04:08:23.271043"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/d1af6c22-9c36-48c1-b7a1-3b8e13867b2f" for 127.0.0.1 at 2015-11-12 23:08:23 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"d1af6c22-9c36-48c1-b7a1-3b8e13867b2f", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"d1af6c22-9c36-48c1-b7a1-3b8e13867b2f"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "d1af6c22-9c36-48c1-b7a1-3b8e13867b2f"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fc2431f4-367d-493b-936b-14d375e38563"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'd1af6c22-9c36-48c1-b7a1-3b8e13867b2f') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'd1af6c22-9c36-48c1-b7a1-3b8e13867b2f') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:08:23.289488"], ["id", "d1af6c22-9c36-48c1-b7a1-3b8e13867b2f"]]  (0.6ms) COMMIT Completed 200 OK in 18ms (Views: 0.9ms | ActiveRecord: 3.0ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "d1af6c22-9c36-48c1-b7a1-3b8e13867b2f"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:08:26.355962"], ["updated_at", "2015-11-13 04:08:26.355962"]]  (3.7ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "beca9f32-5ce6-4149-a885-993996814b61"], ["created_at", "2015-11-13 04:08:26.381263"], ["updated_at", "2015-11-13 04:08:26.381263"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:08:26 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:08:26.425958"], ["updated_at", "2015-11-13 04:08:26.425958"]]  (0.4ms) COMMIT  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "00905e55-0658-4e51-82fc-ad4cdd76d731"], ["created_at", "2015-11-13 04:08:26.434905"], ["updated_at", "2015-11-13 04:08:26.434905"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/2c0fa3ad-2811-49da-a0d6-5ace6059d4b1" for 127.0.0.1 at 2015-11-12 23:08:26 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"2c0fa3ad-2811-49da-a0d6-5ace6059d4b1"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2c0fa3ad-2811-49da-a0d6-5ace6059d4b1"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "00905e55-0658-4e51-82fc-ad4cdd76d731"]] Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:08:26.472976"], ["updated_at", "2015-11-13 04:08:26.472976"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:08:26 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"270fbde8-6338-4cdd-823e-c45577483a62"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "270fbde8-6338-4cdd-823e-c45577483a62"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "270fbde8-6338-4cdd-823e-c45577483a62"], ["created_at", "2015-11-13 04:08:26.484465"], ["updated_at", "2015-11-13 04:08:26.484465"]]  (0.4ms) COMMIT Completed 201 Created in 12ms (Views: 0.7ms | ActiveRecord: 1.7ms)  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (4.2ms) DELETE FROM "strain_variants" SQL (1.4ms) DELETE FROM "strain_articles"  (0.3ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:08:39.538955"], ["updated_at", "2015-11-13 04:08:39.538955"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d12191eb-79d4-4bbd-941f-d4bb3e2e41ae"], ["created_at", "2015-11-13 04:08:39.546993"], ["updated_at", "2015-11-13 04:08:39.546993"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/6cf1b123-9627-40b0-b30e-6b9f68c7879a" for 127.0.0.1 at 2015-11-12 23:08:39 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"6cf1b123-9627-40b0-b30e-6b9f68c7879a"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "6cf1b123-9627-40b0-b30e-6b9f68c7879a"]] SQL (0.4ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "6cf1b123-9627-40b0-b30e-6b9f68c7879a"]]  (0.5ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:08:39.570783"], ["updated_at", "2015-11-13 04:08:39.570783"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d87d857d-eb95-4c15-9786-b5a9f778506e"], ["created_at", "2015-11-13 04:08:39.580239"], ["updated_at", "2015-11-13 04:08:39.580239"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/9a8ead7d-4d91-48c4-9e78-612581bb5bce" for 127.0.0.1 at 2015-11-12 23:08:39 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"9a8ead7d-4d91-48c4-9e78-612581bb5bce", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"9a8ead7d-4d91-48c4-9e78-612581bb5bce"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "9a8ead7d-4d91-48c4-9e78-612581bb5bce"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "d87d857d-eb95-4c15-9786-b5a9f778506e"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '9a8ead7d-4d91-48c4-9e78-612581bb5bce') LIMIT 1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '9a8ead7d-4d91-48c4-9e78-612581bb5bce') LIMIT 1 SQL (0.5ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:08:39.597538"], ["id", "9a8ead7d-4d91-48c4-9e78-612581bb5bce"]]  (0.5ms) COMMIT Completed 200 OK in 20ms (Views: 1.2ms | ActiveRecord: 3.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "9a8ead7d-4d91-48c4-9e78-612581bb5bce"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:09:06.628930"], ["updated_at", "2015-11-13 04:09:06.628930"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "db82483a-258d-4733-b87e-7177d9fbc000"], ["created_at", "2015-11-13 04:09:06.644556"], ["updated_at", "2015-11-13 04:09:06.644556"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:09:06 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:09:06.690062"], ["updated_at", "2015-11-13 04:09:06.690062"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2b658868-4983-4a10-b62f-24a574e3945c"], ["created_at", "2015-11-13 04:09:06.699140"], ["updated_at", "2015-11-13 04:09:06.699140"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/e648c0ee-95ac-46e2-879b-d1d3beadcdc7" for 127.0.0.1 at 2015-11-12 23:09:06 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"e648c0ee-95ac-46e2-879b-d1d3beadcdc7"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e648c0ee-95ac-46e2-879b-d1d3beadcdc7"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2b658868-4983-4a10-b62f-24a574e3945c"]] Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:09:06.734786"], ["updated_at", "2015-11-13 04:09:06.734786"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:09:06 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"4b2e7577-795b-47d4-b9b4-36ec0381087f"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4b2e7577-795b-47d4-b9b4-36ec0381087f"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "4b2e7577-795b-47d4-b9b4-36ec0381087f"], ["created_at", "2015-11-13 04:09:06.746438"], ["updated_at", "2015-11-13 04:09:06.746438"]]  (0.6ms) COMMIT Completed 201 Created in 14ms (Views: 1.4ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (3.6ms) DELETE FROM "strain_variants" SQL (0.7ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:09:07.821171"], ["updated_at", "2015-11-13 04:09:07.821171"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e0e3d2f6-19f0-4e65-ae42-0407e76e659b"], ["created_at", "2015-11-13 04:09:07.829208"], ["updated_at", "2015-11-13 04:09:07.829208"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/616919a7-7256-470a-83c4-4dac2bef313b" for 127.0.0.1 at 2015-11-12 23:09:07 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"616919a7-7256-470a-83c4-4dac2bef313b"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "616919a7-7256-470a-83c4-4dac2bef313b"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "616919a7-7256-470a-83c4-4dac2bef313b"]]  (0.4ms) COMMIT Completed 204 No Content in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:09:07.855390"], ["updated_at", "2015-11-13 04:09:07.855390"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9ccffd68-24a0-427d-bd65-52f2ee39efda"], ["created_at", "2015-11-13 04:09:07.863695"], ["updated_at", "2015-11-13 04:09:07.863695"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/a9bc742f-b1a0-4942-94bf-8b1a6873bf43" for 127.0.0.1 at 2015-11-12 23:09:07 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"a9bc742f-b1a0-4942-94bf-8b1a6873bf43", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"a9bc742f-b1a0-4942-94bf-8b1a6873bf43"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "a9bc742f-b1a0-4942-94bf-8b1a6873bf43"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9ccffd68-24a0-427d-bd65-52f2ee39efda"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'a9bc742f-b1a0-4942-94bf-8b1a6873bf43') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'a9bc742f-b1a0-4942-94bf-8b1a6873bf43') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:09:07.882210"], ["id", "a9bc742f-b1a0-4942-94bf-8b1a6873bf43"]]  (0.5ms) COMMIT Completed 200 OK in 18ms (Views: 0.9ms | ActiveRecord: 2.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "a9bc742f-b1a0-4942-94bf-8b1a6873bf43"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:09:14.868075"], ["updated_at", "2015-11-13 04:09:14.868075"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f3f089d8-5715-4c96-a222-4933379b872a"], ["created_at", "2015-11-13 04:09:14.886707"], ["updated_at", "2015-11-13 04:09:14.886707"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:09:14 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:09:14.933675"], ["updated_at", "2015-11-13 04:09:14.933675"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a4d94634-7b8c-4890-858f-f9197d82fc79"], ["created_at", "2015-11-13 04:09:14.942770"], ["updated_at", "2015-11-13 04:09:14.942770"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/f09c6230-a6f9-4ae4-9e68-77ef3bf2acef" for 127.0.0.1 at 2015-11-12 23:09:14 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"f09c6230-a6f9-4ae4-9e68-77ef3bf2acef"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f09c6230-a6f9-4ae4-9e68-77ef3bf2acef"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a4d94634-7b8c-4890-858f-f9197d82fc79"]] Completed 200 OK in 15ms (Views: 1.8ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:09:14.984230"], ["updated_at", "2015-11-13 04:09:14.984230"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:09:14 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"627f2cb4-4d2c-4694-a7b4-fb222e3026b5"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "627f2cb4-4d2c-4694-a7b4-fb222e3026b5"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "627f2cb4-4d2c-4694-a7b4-fb222e3026b5"], ["created_at", "2015-11-13 04:09:14.996184"], ["updated_at", "2015-11-13 04:09:14.996184"]]  (0.6ms) COMMIT Completed 201 Created in 15ms (Views: 1.4ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:09:15.019789"], ["updated_at", "2015-11-13 04:09:15.019789"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4608042e-2e54-41df-9ab6-54e3e06a121b"], ["created_at", "2015-11-13 04:09:15.025855"], ["updated_at", "2015-11-13 04:09:15.025855"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/06378b4f-e614-4a50-8032-9ac7f72c0230" for 127.0.0.1 at 2015-11-12 23:09:15 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"06378b4f-e614-4a50-8032-9ac7f72c0230"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "06378b4f-e614-4a50-8032-9ac7f72c0230"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "06378b4f-e614-4a50-8032-9ac7f72c0230"]]  (0.4ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:09:15.047075"], ["updated_at", "2015-11-13 04:09:15.047075"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "35c0b36f-71d4-4020-ba7b-b3b5eb57c576"], ["created_at", "2015-11-13 04:09:15.053701"], ["updated_at", "2015-11-13 04:09:15.053701"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/525a5558-0901-410b-858a-1b24c7dc6e01" for 127.0.0.1 at 2015-11-12 23:09:15 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"525a5558-0901-410b-858a-1b24c7dc6e01", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"525a5558-0901-410b-858a-1b24c7dc6e01"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "525a5558-0901-410b-858a-1b24c7dc6e01"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "35c0b36f-71d4-4020-ba7b-b3b5eb57c576"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '525a5558-0901-410b-858a-1b24c7dc6e01') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '525a5558-0901-410b-858a-1b24c7dc6e01') LIMIT 1 SQL (0.8ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:09:15.068809"], ["id", "525a5558-0901-410b-858a-1b24c7dc6e01"]]  (0.6ms) COMMIT Completed 200 OK in 19ms (Views: 1.2ms | ActiveRecord: 3.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "525a5558-0901-410b-858a-1b24c7dc6e01"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.619988"], ["updated_at", "2015-11-13 04:11:44.619988"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.647612"], ["updated_at", "2015-11-13 04:11:44.647612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.671112"], ["updated_at", "2015-11-13 04:11:44.671112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.687606"], ["updated_at", "2015-11-13 04:11:44.687606"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.705818"], ["updated_at", "2015-11-13 04:11:44.705818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.724031"], ["updated_at", "2015-11-13 04:11:44.724031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "afdb2487-daef-41bf-ab10-436c911d4321"], ["created_at", "2015-11-13 04:11:44.729382"], ["updated_at", "2015-11-13 04:11:44.729382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (9.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "afdb2487-daef-41bf-ab10-436c911d4321"], ["created_at", "2015-11-13 04:11:44.736455"], ["updated_at", "2015-11-13 04:11:44.736455"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (2.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.759183"], ["updated_at", "2015-11-13 04:11:44.759183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d71390b0-5343-42e7-8d2a-77c7c95781f2"], ["created_at", "2015-11-13 04:11:44.764152"], ["updated_at", "2015-11-13 04:11:44.764152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.782254"], ["updated_at", "2015-11-13 04:11:44.782254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.797025"], ["updated_at", "2015-11-13 04:11:44.797025"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 04:11:44.812726"], ["updated_at", "2015-11-13 04:11:44.812726"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f3bc05eb-1429-4c48-922d-b782075d5060"], ["created_at", "2015-11-13 04:11:44.814402"], ["updated_at", "2015-11-13 04:11:44.814402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.881294"], ["updated_at", "2015-11-13 04:11:44.881294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.884974"], ["updated_at", "2015-11-13 04:11:44.884974"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.895877"], ["updated_at", "2015-11-13 04:11:44.895877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.937125"], ["updated_at", "2015-11-13 04:11:44.937125"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4303ba4b-ded3-4ac9-b743-656ef9ad62eb"], ["created_at", "2015-11-13 04:11:44.944949"], ["updated_at", "2015-11-13 04:11:44.944949"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:11:44 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:44.985552"], ["updated_at", "2015-11-13 04:11:44.985552"]]  (0.6ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "72424027-9a06-464e-b147-1efd953f84e8"], ["created_at", "2015-11-13 04:11:44.991921"], ["updated_at", "2015-11-13 04:11:44.991921"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/8e92d40e-d45a-4aa3-ba56-b4b369cee10c" for 127.0.0.1 at 2015-11-12 23:11:44 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"8e92d40e-d45a-4aa3-ba56-b4b369cee10c"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "8e92d40e-d45a-4aa3-ba56-b4b369cee10c"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "72424027-9a06-464e-b147-1efd953f84e8"]] Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 0.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:45.030556"], ["updated_at", "2015-11-13 04:11:45.030556"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-12 23:11:45 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"f9de9e6f-09a3-4dc3-9fb0-08e75a269da8"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f9de9e6f-09a3-4dc3-9fb0-08e75a269da8"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "f9de9e6f-09a3-4dc3-9fb0-08e75a269da8"], ["created_at", "2015-11-13 04:11:45.041310"], ["updated_at", "2015-11-13 04:11:45.041310"]]  (0.6ms) COMMIT Completed 201 Created in 11ms (Views: 0.8ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:45.061065"], ["updated_at", "2015-11-13 04:11:45.061065"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "be1f3b1c-cade-4ac4-9a06-5aad089c7772"], ["created_at", "2015-11-13 04:11:45.066933"], ["updated_at", "2015-11-13 04:11:45.066933"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/0a846f56-ce38-4b38-9063-28dcbea7dbbf" for 127.0.0.1 at 2015-11-12 23:11:45 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"0a846f56-ce38-4b38-9063-28dcbea7dbbf"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "0a846f56-ce38-4b38-9063-28dcbea7dbbf"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "0a846f56-ce38-4b38-9063-28dcbea7dbbf"]]  (0.2ms) COMMIT Completed 204 No Content in 3ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:45.087255"], ["updated_at", "2015-11-13 04:11:45.087255"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6019aacf-3a44-4207-bb29-8eac9b16685d"], ["created_at", "2015-11-13 04:11:45.092964"], ["updated_at", "2015-11-13 04:11:45.092964"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/2d1d47ee-1c33-4f6b-b858-9f1a0fcb7d58" for 127.0.0.1 at 2015-11-12 23:11:45 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"2d1d47ee-1c33-4f6b-b858-9f1a0fcb7d58", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"2d1d47ee-1c33-4f6b-b858-9f1a0fcb7d58"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2d1d47ee-1c33-4f6b-b858-9f1a0fcb7d58"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6019aacf-3a44-4207-bb29-8eac9b16685d"]] Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '2d1d47ee-1c33-4f6b-b858-9f1a0fcb7d58') LIMIT 1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '2d1d47ee-1c33-4f6b-b858-9f1a0fcb7d58') LIMIT 1 SQL (0.5ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 04:11:45.108634"], ["id", "2d1d47ee-1c33-4f6b-b858-9f1a0fcb7d58"]]  (0.3ms) COMMIT Completed 200 OK in 18ms (Views: 0.8ms | ActiveRecord: 3.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "2d1d47ee-1c33-4f6b-b858-9f1a0fcb7d58"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:45.129780"], ["updated_at", "2015-11-13 04:11:45.129780"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:11:45 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:45.149609"], ["updated_at", "2015-11-13 04:11:45.149609"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants/3aa18703-cfbd-40d9-be31-7d26ebd61cf9" for 127.0.0.1 at 2015-11-12 23:11:45 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"3aa18703-cfbd-40d9-be31-7d26ebd61cf9"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "3aa18703-cfbd-40d9-be31-7d26ebd61cf9"]] Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-12 23:11:45 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-13 04:11:45.181914"], ["updated_at", "2015-11-13 04:11:45.181914"]]  (0.6ms) COMMIT Completed 201 Created in 20ms (Views: 0.6ms | ActiveRecord: 2.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:45.202707"], ["updated_at", "2015-11-13 04:11:45.202707"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/2b4700af-16c9-4fc4-92ca-54f111d924cc" for 127.0.0.1 at 2015-11-12 23:11:45 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"2b4700af-16c9-4fc4-92ca-54f111d924cc"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "2b4700af-16c9-4fc4-92ca-54f111d924cc"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "2b4700af-16c9-4fc4-92ca-54f111d924cc"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 04:11:45.221930"], ["updated_at", "2015-11-13 04:11:45.221930"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/49802c27-7ac5-482d-8601-2701d4b14fa1" for 127.0.0.1 at 2015-11-12 23:11:45 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"49802c27-7ac5-482d-8601-2701d4b14fa1", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"49802c27-7ac5-482d-8601-2701d4b14fa1"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "49802c27-7ac5-482d-8601-2701d4b14fa1"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '49802c27-7ac5-482d-8601-2701d4b14fa1') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '49802c27-7ac5-482d-8601-2701d4b14fa1') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-13 04:11:45.242433"], ["id", "49802c27-7ac5-482d-8601-2701d4b14fa1"]]  (0.5ms) COMMIT Completed 200 OK in 21ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "49802c27-7ac5-482d-8601-2701d4b14fa1"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (21.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:41:11.786808"], ["updated_at", "2015-11-13 05:41:11.786808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:41:11.834165"], ["updated_at", "2015-11-13 05:41:11.834165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:41:11.856618"], ["updated_at", "2015-11-13 05:41:11.856618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:41:11.877373"], ["updated_at", "2015-11-13 05:41:11.877373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:41:11.893613"], ["updated_at", "2015-11-13 05:41:11.893613"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:41:11.911131"], ["updated_at", "2015-11-13 05:41:11.911131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0191d34b-5ef8-4672-91ee-91da4820c1c0"], ["created_at", "2015-11-13 05:41:11.917697"], ["updated_at", "2015-11-13 05:41:11.917697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0191d34b-5ef8-4672-91ee-91da4820c1c0"], ["created_at", "2015-11-13 05:41:11.923415"], ["updated_at", "2015-11-13 05:41:11.923415"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:41:11.936014"], ["updated_at", "2015-11-13 05:41:11.936014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e4ccd6e4-9f92-4599-b187-c6c7c5a1b37a"], ["created_at", "2015-11-13 05:41:11.941760"], ["updated_at", "2015-11-13 05:41:11.941760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:41:11.958728"], ["updated_at", "2015-11-13 05:41:11.958728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:41:11.975394"], ["updated_at", "2015-11-13 05:41:11.975394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 05:41:12.020575"], ["updated_at", "2015-11-13 05:41:12.020575"]] SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "09b1ba7a-3132-4302-b649-bf1d40ead311"], ["created_at", "2015-11-13 05:41:12.022723"], ["updated_at", "2015-11-13 05:41:12.022723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:42:05.214716"], ["updated_at", "2015-11-13 05:42:05.214716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:42:15.386994"], ["updated_at", "2015-11-13 05:42:15.386994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:42:17.610476"], ["updated_at", "2015-11-13 05:42:17.610476"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:42:19.281573"], ["updated_at", "2015-11-13 05:42:19.281573"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:42:22.150416"], ["updated_at", "2015-11-13 05:42:22.150416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:42:23.949607"], ["updated_at", "2015-11-13 05:42:23.949607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a18aabbb-4c1f-41a3-984e-948539e3a813"], ["created_at", "2015-11-13 05:42:25.589913"], ["updated_at", "2015-11-13 05:42:25.589913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a18aabbb-4c1f-41a3-984e-948539e3a813"], ["created_at", "2015-11-13 05:42:25.597613"], ["updated_at", "2015-11-13 05:42:25.597613"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:42:25.609570"], ["updated_at", "2015-11-13 05:42:25.609570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "edf0f167-1cbe-4739-a6e8-c520741f2338"], ["created_at", "2015-11-13 05:42:26.822728"], ["updated_at", "2015-11-13 05:42:26.822728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:42:28.207375"], ["updated_at", "2015-11-13 05:42:28.207375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:42:29.449583"], ["updated_at", "2015-11-13 05:42:29.449583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 05:43:06.026049"], ["updated_at", "2015-11-13 05:43:06.026049"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "01ebb8b0-d566-4bb5-aab1-08b74395084d"], ["created_at", "2015-11-13 05:43:06.028263"], ["updated_at", "2015-11-13 05:43:06.028263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:44:00.858906"], ["updated_at", "2015-11-13 05:44:00.858906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:44:13.711780"], ["updated_at", "2015-11-13 05:44:13.711780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:44:15.991107"], ["updated_at", "2015-11-13 05:44:15.991107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:44:20.275507"], ["updated_at", "2015-11-13 05:44:20.275507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:44:22.536858"], ["updated_at", "2015-11-13 05:44:22.536858"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:44:23.254311"], ["updated_at", "2015-11-13 05:44:23.254311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e55ad950-6e31-435e-9805-68525b241b7d"], ["created_at", "2015-11-13 05:44:25.488262"], ["updated_at", "2015-11-13 05:44:25.488262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e55ad950-6e31-435e-9805-68525b241b7d"], ["created_at", "2015-11-13 05:44:25.494847"], ["updated_at", "2015-11-13 05:44:25.494847"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:44:25.508447"], ["updated_at", "2015-11-13 05:44:25.508447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d85cc591-be62-4acc-8fc3-4552ffdef8ee"], ["created_at", "2015-11-13 05:44:27.897374"], ["updated_at", "2015-11-13 05:44:27.897374"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:44:29.752204"], ["updated_at", "2015-11-13 05:44:29.752204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:44:30.707030"], ["updated_at", "2015-11-13 05:44:30.707030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 05:44:46.020730"], ["updated_at", "2015-11-13 05:44:46.020730"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "aab1ca5e-d7fa-4113-9dae-f9df00f9e247"], ["created_at", "2015-11-13 05:44:46.022828"], ["updated_at", "2015-11-13 05:44:46.022828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (25.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:26.001579"], ["updated_at", "2015-11-13 05:50:26.001579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:40.250469"], ["updated_at", "2015-11-13 05:50:40.250469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:40.651630"], ["updated_at", "2015-11-13 05:50:40.651630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:41.045283"], ["updated_at", "2015-11-13 05:50:41.045283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:41.363547"], ["updated_at", "2015-11-13 05:50:41.363547"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:41.608694"], ["updated_at", "2015-11-13 05:50:41.608694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "717fea01-a9ca-40b3-980f-24e193dd4b91"], ["created_at", "2015-11-13 05:50:41.894194"], ["updated_at", "2015-11-13 05:50:41.894194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "717fea01-a9ca-40b3-980f-24e193dd4b91"], ["created_at", "2015-11-13 05:50:41.901479"], ["updated_at", "2015-11-13 05:50:41.901479"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:41.916961"], ["updated_at", "2015-11-13 05:50:41.916961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "320ae979-c89e-471a-9184-1d45e7548f60"], ["created_at", "2015-11-13 05:50:42.190221"], ["updated_at", "2015-11-13 05:50:42.190221"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:42.574703"], ["updated_at", "2015-11-13 05:50:42.574703"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:42.951631"], ["updated_at", "2015-11-13 05:50:42.951631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 05:50:45.436623"], ["updated_at", "2015-11-13 05:50:45.436623"]] SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d5db5110-b685-42bf-b376-082368c603e2"], ["created_at", "2015-11-13 05:50:45.438817"], ["updated_at", "2015-11-13 05:50:45.438817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:48.726826"], ["updated_at", "2015-11-13 05:50:48.726826"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:48.751697"], ["updated_at", "2015-11-13 05:50:48.751697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:48.772533"], ["updated_at", "2015-11-13 05:50:48.772533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:48.791849"], ["updated_at", "2015-11-13 05:50:48.791849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:48.807468"], ["updated_at", "2015-11-13 05:50:48.807468"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:48.823020"], ["updated_at", "2015-11-13 05:50:48.823020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "61c8e70d-7eb9-45a4-a904-179b06103f79"], ["created_at", "2015-11-13 05:50:48.829145"], ["updated_at", "2015-11-13 05:50:48.829145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "61c8e70d-7eb9-45a4-a904-179b06103f79"], ["created_at", "2015-11-13 05:50:48.834774"], ["updated_at", "2015-11-13 05:50:48.834774"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:48.846783"], ["updated_at", "2015-11-13 05:50:48.846783"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c7c7c651-7cd5-4641-b642-50f4408a2c1c"], ["created_at", "2015-11-13 05:50:48.853051"], ["updated_at", "2015-11-13 05:50:48.853051"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:48.870260"], ["updated_at", "2015-11-13 05:50:48.870260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:50:48.886755"], ["updated_at", "2015-11-13 05:50:48.886755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 05:51:14.542057"], ["updated_at", "2015-11-13 05:51:14.542057"]] SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ab406c53-cfaa-4803-9181-ae78002aa459"], ["created_at", "2015-11-13 05:51:14.544826"], ["updated_at", "2015-11-13 05:51:14.544826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:17.806734"], ["updated_at", "2015-11-13 05:51:17.806734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:17.830173"], ["updated_at", "2015-11-13 05:51:17.830173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:17.856498"], ["updated_at", "2015-11-13 05:51:17.856498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:17.875790"], ["updated_at", "2015-11-13 05:51:17.875790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:17.891083"], ["updated_at", "2015-11-13 05:51:17.891083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:17.906583"], ["updated_at", "2015-11-13 05:51:17.906583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:17.923003"], ["updated_at", "2015-11-13 05:51:17.923003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:17.938402"], ["updated_at", "2015-11-13 05:51:17.938402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:17.958680"], ["updated_at", "2015-11-13 05:51:17.958680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:37.279488"], ["updated_at", "2015-11-13 05:51:37.279488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 05:51:50.898892"], ["updated_at", "2015-11-13 05:51:50.898892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:12:02.410387"], ["updated_at", "2015-11-13 06:12:02.410387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:12:45.040726"], ["updated_at", "2015-11-13 06:12:45.040726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:14:38.828961"], ["updated_at", "2015-11-13 06:14:38.828961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.2ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.5ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:01.075730"], ["updated_at", "2015-11-13 06:17:01.075730"]]  (3.2ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d4a001ef-7988-4471-91be-3675908c37ba"], ["created_at", "2015-11-13 06:17:01.092981"], ["updated_at", "2015-11-13 06:17:01.092981"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 01:17:01 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:01.139153"], ["updated_at", "2015-11-13 06:17:01.139153"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ef340b4f-03d9-4570-8c7d-ad4aef65d163"], ["created_at", "2015-11-13 06:17:01.148870"], ["updated_at", "2015-11-13 06:17:01.148870"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/34877e3d-1631-48fd-ac50-4abdf4a282d0" for 127.0.0.1 at 2015-11-13 01:17:01 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"34877e3d-1631-48fd-ac50-4abdf4a282d0"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "34877e3d-1631-48fd-ac50-4abdf4a282d0"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ef340b4f-03d9-4570-8c7d-ad4aef65d163"]] Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:01.185652"], ["updated_at", "2015-11-13 06:17:01.185652"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 01:17:01 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"f247a042-36e5-4ded-ac9c-4ea63cc0dc49"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f247a042-36e5-4ded-ac9c-4ea63cc0dc49"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "f247a042-36e5-4ded-ac9c-4ea63cc0dc49"], ["created_at", "2015-11-13 06:17:01.196532"], ["updated_at", "2015-11-13 06:17:01.196532"]]  (0.4ms) COMMIT Completed 201 Created in 14ms (Views: 1.4ms | ActiveRecord: 1.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:01.218673"], ["updated_at", "2015-11-13 06:17:01.218673"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2e8e3266-2ff1-4262-9116-0b057817f4c2"], ["created_at", "2015-11-13 06:17:01.224319"], ["updated_at", "2015-11-13 06:17:01.224319"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/50d93d74-c6c6-428a-bd84-be82773760f1" for 127.0.0.1 at 2015-11-13 01:17:01 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"50d93d74-c6c6-428a-bd84-be82773760f1"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "50d93d74-c6c6-428a-bd84-be82773760f1"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "50d93d74-c6c6-428a-bd84-be82773760f1"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:01.246412"], ["updated_at", "2015-11-13 06:17:01.246412"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7163c061-8dfa-40c7-8bd5-86c06464ee36"], ["created_at", "2015-11-13 06:17:01.252148"], ["updated_at", "2015-11-13 06:17:01.252148"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/33187b2e-a199-4a91-a9a4-a8d2b7736b1e" for 127.0.0.1 at 2015-11-13 01:17:01 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"33187b2e-a199-4a91-a9a4-a8d2b7736b1e", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"33187b2e-a199-4a91-a9a4-a8d2b7736b1e"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "33187b2e-a199-4a91-a9a4-a8d2b7736b1e"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "7163c061-8dfa-40c7-8bd5-86c06464ee36"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '33187b2e-a199-4a91-a9a4-a8d2b7736b1e') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '33187b2e-a199-4a91-a9a4-a8d2b7736b1e') LIMIT 1 SQL (0.8ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 06:17:01.264385"], ["id", "33187b2e-a199-4a91-a9a4-a8d2b7736b1e"]]  (0.6ms) COMMIT Completed 200 OK in 14ms (Views: 0.7ms | ActiveRecord: 2.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "33187b2e-a199-4a91-a9a4-a8d2b7736b1e"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:07.971195"], ["updated_at", "2015-11-13 06:17:07.971195"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:07.997486"], ["updated_at", "2015-11-13 06:17:07.997486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:08.018654"], ["updated_at", "2015-11-13 06:17:08.018654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:08.039842"], ["updated_at", "2015-11-13 06:17:08.039842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:08.059521"], ["updated_at", "2015-11-13 06:17:08.059521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:08.074560"], ["updated_at", "2015-11-13 06:17:08.074560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "80be21dc-55de-447b-9e18-1e5078100b25"], ["created_at", "2015-11-13 06:17:08.079938"], ["updated_at", "2015-11-13 06:17:08.079938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "80be21dc-55de-447b-9e18-1e5078100b25"], ["created_at", "2015-11-13 06:17:08.085161"], ["updated_at", "2015-11-13 06:17:08.085161"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:08.096459"], ["updated_at", "2015-11-13 06:17:08.096459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a0b5b0cf-0bce-46d1-9f77-f6eb3dcab101"], ["created_at", "2015-11-13 06:17:08.101793"], ["updated_at", "2015-11-13 06:17:08.101793"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:08.122311"], ["updated_at", "2015-11-13 06:17:08.122311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:08.143975"], ["updated_at", "2015-11-13 06:17:08.143975"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 06:17:12.761128"], ["updated_at", "2015-11-13 06:17:12.761128"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "80b67524-a570-48a5-8efb-10501f2d851d"], ["created_at", "2015-11-13 06:17:12.763525"], ["updated_at", "2015-11-13 06:17:12.763525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:18.718070"], ["updated_at", "2015-11-13 06:17:18.718070"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:18.741803"], ["updated_at", "2015-11-13 06:17:18.741803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:18.764829"], ["updated_at", "2015-11-13 06:17:18.764829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:18.782568"], ["updated_at", "2015-11-13 06:17:18.782568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:18.796616"], ["updated_at", "2015-11-13 06:17:18.796616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:18.811803"], ["updated_at", "2015-11-13 06:17:18.811803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8e903d96-54c2-4601-a001-caa6e54ec820"], ["created_at", "2015-11-13 06:17:18.817092"], ["updated_at", "2015-11-13 06:17:18.817092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8e903d96-54c2-4601-a001-caa6e54ec820"], ["created_at", "2015-11-13 06:17:18.821620"], ["updated_at", "2015-11-13 06:17:18.821620"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:18.831876"], ["updated_at", "2015-11-13 06:17:18.831876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ac547cde-6ec0-44db-a0a7-07a48765b49f"], ["created_at", "2015-11-13 06:17:18.838465"], ["updated_at", "2015-11-13 06:17:18.838465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:18.854270"], ["updated_at", "2015-11-13 06:17:18.854270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:18.868035"], ["updated_at", "2015-11-13 06:17:18.868035"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 06:17:18.898213"], ["updated_at", "2015-11-13 06:17:18.898213"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7e973d86-e797-4e66-99a1-3b77b0a7114f"], ["created_at", "2015-11-13 06:17:18.900003"], ["updated_at", "2015-11-13 06:17:18.900003"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:28.356390"], ["updated_at", "2015-11-13 06:17:28.356390"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:28.383114"], ["updated_at", "2015-11-13 06:17:28.383114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:28.408036"], ["updated_at", "2015-11-13 06:17:28.408036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:28.426565"], ["updated_at", "2015-11-13 06:17:28.426565"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:28.447651"], ["updated_at", "2015-11-13 06:17:28.447651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:28.465252"], ["updated_at", "2015-11-13 06:17:28.465252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2d156a8a-c7f1-46f5-be3a-522095c17344"], ["created_at", "2015-11-13 06:17:28.470717"], ["updated_at", "2015-11-13 06:17:28.470717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2d156a8a-c7f1-46f5-be3a-522095c17344"], ["created_at", "2015-11-13 06:17:28.475622"], ["updated_at", "2015-11-13 06:17:28.475622"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:28.487340"], ["updated_at", "2015-11-13 06:17:28.487340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a594e91f-adf8-4cdd-8c4a-d78d042351ad"], ["created_at", "2015-11-13 06:17:28.493161"], ["updated_at", "2015-11-13 06:17:28.493161"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:28.515114"], ["updated_at", "2015-11-13 06:17:28.515114"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:28.535921"], ["updated_at", "2015-11-13 06:17:28.535921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 06:17:28.570701"], ["updated_at", "2015-11-13 06:17:28.570701"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "80ff04e7-e36c-46b3-9555-b8e0c81b9598"], ["created_at", "2015-11-13 06:17:28.572705"], ["updated_at", "2015-11-13 06:17:28.572705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:54.664763"], ["updated_at", "2015-11-13 06:17:54.664763"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:54.692276"], ["updated_at", "2015-11-13 06:17:54.692276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:54.717760"], ["updated_at", "2015-11-13 06:17:54.717760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:54.743525"], ["updated_at", "2015-11-13 06:17:54.743525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:54.758298"], ["updated_at", "2015-11-13 06:17:54.758298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:54.773713"], ["updated_at", "2015-11-13 06:17:54.773713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "be62e842-0014-400c-8b24-f326bb27ac69"], ["created_at", "2015-11-13 06:17:54.779232"], ["updated_at", "2015-11-13 06:17:54.779232"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "be62e842-0014-400c-8b24-f326bb27ac69"], ["created_at", "2015-11-13 06:17:54.787817"], ["updated_at", "2015-11-13 06:17:54.787817"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:54.802162"], ["updated_at", "2015-11-13 06:17:54.802162"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "44f1a3da-de38-4d20-a927-66e2f80c14ec"], ["created_at", "2015-11-13 06:17:54.811628"], ["updated_at", "2015-11-13 06:17:54.811628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:54.828222"], ["updated_at", "2015-11-13 06:17:54.828222"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:17:54.848832"], ["updated_at", "2015-11-13 06:17:54.848832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 06:17:54.887257"], ["updated_at", "2015-11-13 06:17:54.887257"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4c5d1887-7fb0-464a-a907-6ff74dabe8bc"], ["created_at", "2015-11-13 06:17:54.889521"], ["updated_at", "2015-11-13 06:17:54.889521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:00.640515"], ["updated_at", "2015-11-13 06:18:00.640515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:00.669175"], ["updated_at", "2015-11-13 06:18:00.669175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:00.695329"], ["updated_at", "2015-11-13 06:18:00.695329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:00.713395"], ["updated_at", "2015-11-13 06:18:00.713395"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:00.727972"], ["updated_at", "2015-11-13 06:18:00.727972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:00.743313"], ["updated_at", "2015-11-13 06:18:00.743313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "433908b5-0cf4-42b0-9657-399f6bd32d9b"], ["created_at", "2015-11-13 06:18:00.749443"], ["updated_at", "2015-11-13 06:18:00.749443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "433908b5-0cf4-42b0-9657-399f6bd32d9b"], ["created_at", "2015-11-13 06:18:00.754338"], ["updated_at", "2015-11-13 06:18:00.754338"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:00.765967"], ["updated_at", "2015-11-13 06:18:00.765967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "88ffca07-33c8-4fe8-a43c-75262921b841"], ["created_at", "2015-11-13 06:18:00.771232"], ["updated_at", "2015-11-13 06:18:00.771232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:00.792479"], ["updated_at", "2015-11-13 06:18:00.792479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:00.817146"], ["updated_at", "2015-11-13 06:18:00.817146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 06:18:00.836594"], ["updated_at", "2015-11-13 06:18:00.836594"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8321b570-62cd-4ea9-9883-62e6a4568ec0"], ["created_at", "2015-11-13 06:18:00.838403"], ["updated_at", "2015-11-13 06:18:00.838403"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:07.212471"], ["updated_at", "2015-11-13 06:18:07.212471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:07.238924"], ["updated_at", "2015-11-13 06:18:07.238924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:07.263988"], ["updated_at", "2015-11-13 06:18:07.263988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:07.281985"], ["updated_at", "2015-11-13 06:18:07.281985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:07.301316"], ["updated_at", "2015-11-13 06:18:07.301316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:07.315503"], ["updated_at", "2015-11-13 06:18:07.315503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d41b47a9-1b10-4078-8a48-a876818c0493"], ["created_at", "2015-11-13 06:18:07.320864"], ["updated_at", "2015-11-13 06:18:07.320864"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d41b47a9-1b10-4078-8a48-a876818c0493"], ["created_at", "2015-11-13 06:18:07.327635"], ["updated_at", "2015-11-13 06:18:07.327635"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:07.340827"], ["updated_at", "2015-11-13 06:18:07.340827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0941e4dd-a2c4-470c-98a1-5dab4f3d3aa8"], ["created_at", "2015-11-13 06:18:07.346431"], ["updated_at", "2015-11-13 06:18:07.346431"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:07.364939"], ["updated_at", "2015-11-13 06:18:07.364939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:07.386337"], ["updated_at", "2015-11-13 06:18:07.386337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 06:18:07.403116"], ["updated_at", "2015-11-13 06:18:07.403116"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "47a4abb6-3d42-4fcb-8fb2-f672f9f1e1c4"], ["created_at", "2015-11-13 06:18:07.405232"], ["updated_at", "2015-11-13 06:18:07.405232"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:12.907651"], ["updated_at", "2015-11-13 06:18:12.907651"]]  (3.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "34596368-3904-4c6e-a946-949959f491a6"], ["created_at", "2015-11-13 06:18:12.926132"], ["updated_at", "2015-11-13 06:18:12.926132"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 01:18:12 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:12.968315"], ["updated_at", "2015-11-13 06:18:12.968315"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2497795b-6d21-4f7d-940c-f4dfdbadd7bf"], ["created_at", "2015-11-13 06:18:12.977001"], ["updated_at", "2015-11-13 06:18:12.977001"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/f03ecbe4-06f4-4b47-8840-f03d4eb701d8" for 127.0.0.1 at 2015-11-13 01:18:12 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"f03ecbe4-06f4-4b47-8840-f03d4eb701d8"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f03ecbe4-06f4-4b47-8840-f03d4eb701d8"]] Strain::Variant Load (0.8ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2497795b-6d21-4f7d-940c-f4dfdbadd7bf"]] Completed 200 OK in 15ms (Views: 1.6ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:13.023164"], ["updated_at", "2015-11-13 06:18:13.023164"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 01:18:13 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"0735a66b-736e-46fb-94be-9d617d39e20f"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "0735a66b-736e-46fb-94be-9d617d39e20f"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "0735a66b-736e-46fb-94be-9d617d39e20f"], ["created_at", "2015-11-13 06:18:13.034419"], ["updated_at", "2015-11-13 06:18:13.034419"]]  (0.5ms) COMMIT Completed 201 Created in 13ms (Views: 1.3ms | ActiveRecord: 1.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:13.056644"], ["updated_at", "2015-11-13 06:18:13.056644"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e20bbd64-bc25-431f-9d12-c20c45819727"], ["created_at", "2015-11-13 06:18:13.063138"], ["updated_at", "2015-11-13 06:18:13.063138"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/1a6d8556-7618-4ec8-8400-b3ba2540527d" for 127.0.0.1 at 2015-11-13 01:18:13 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"1a6d8556-7618-4ec8-8400-b3ba2540527d"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "1a6d8556-7618-4ec8-8400-b3ba2540527d"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "1a6d8556-7618-4ec8-8400-b3ba2540527d"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:18:13.082059"], ["updated_at", "2015-11-13 06:18:13.082059"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "680c987a-709c-4a93-970b-8baad6651491"], ["created_at", "2015-11-13 06:18:13.087465"], ["updated_at", "2015-11-13 06:18:13.087465"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/articles/5a82119d-b671-4bd5-b84c-61e80fbc9ac7" for 127.0.0.1 at 2015-11-13 01:18:13 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"5a82119d-b671-4bd5-b84c-61e80fbc9ac7", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"5a82119d-b671-4bd5-b84c-61e80fbc9ac7"}  (0.2ms) BEGIN Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5a82119d-b671-4bd5-b84c-61e80fbc9ac7"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "680c987a-709c-4a93-970b-8baad6651491"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5a82119d-b671-4bd5-b84c-61e80fbc9ac7') LIMIT 1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5a82119d-b671-4bd5-b84c-61e80fbc9ac7') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 06:18:13.104221"], ["id", "5a82119d-b671-4bd5-b84c-61e80fbc9ac7"]]  (0.5ms) COMMIT Completed 200 OK in 18ms (Views: 0.7ms | ActiveRecord: 3.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "5a82119d-b671-4bd5-b84c-61e80fbc9ac7"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:20:04.464355"], ["updated_at", "2015-11-13 06:20:04.464355"]]  (3.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "43c195c7-a820-4342-af2b-7ba1f2cd2be8"], ["created_at", "2015-11-13 06:20:04.485106"], ["updated_at", "2015-11-13 06:20:04.485106"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 01:20:04 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:20:04.530073"], ["updated_at", "2015-11-13 06:20:04.530073"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6a77c7e1-a477-4dd2-ad5e-cc4166f7349a"], ["created_at", "2015-11-13 06:20:04.539356"], ["updated_at", "2015-11-13 06:20:04.539356"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/a0c29972-d374-411a-85da-ef58f4896eca" for 127.0.0.1 at 2015-11-13 01:20:04 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"a0c29972-d374-411a-85da-ef58f4896eca"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "a0c29972-d374-411a-85da-ef58f4896eca"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6a77c7e1-a477-4dd2-ad5e-cc4166f7349a"]] Completed 200 OK in 16ms (Views: 1.8ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:20:04.586867"], ["updated_at", "2015-11-13 06:20:04.586867"]]  (0.4ms) COMMIT SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:20:04.600554"], ["updated_at", "2015-11-13 06:20:04.600554"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e92998ab-5c12-4aca-9bac-469a3f792f66"], ["created_at", "2015-11-13 06:20:04.606183"], ["updated_at", "2015-11-13 06:20:04.606183"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/e941e3bd-1c1f-4041-a491-1d5076f2de87" for 127.0.0.1 at 2015-11-13 01:20:04 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"e941e3bd-1c1f-4041-a491-1d5076f2de87"}  (0.2ms) BEGIN Strain::Article Load (0.6ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e941e3bd-1c1f-4041-a491-1d5076f2de87"]] SQL (0.4ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "e941e3bd-1c1f-4041-a491-1d5076f2de87"]]  (0.6ms) COMMIT Completed 204 No Content in 6ms (Views: 0.2ms | ActiveRecord: 1.8ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:20:04.632673"], ["updated_at", "2015-11-13 06:20:04.632673"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "50dc87f3-17e1-4a1d-9aed-e838ae422a38"], ["created_at", "2015-11-13 06:20:04.641826"], ["updated_at", "2015-11-13 06:20:04.641826"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/2103e2d0-5385-4d8f-95af-53a909b8eb13" for 127.0.0.1 at 2015-11-13 01:20:04 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"2103e2d0-5385-4d8f-95af-53a909b8eb13", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"2103e2d0-5385-4d8f-95af-53a909b8eb13"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2103e2d0-5385-4d8f-95af-53a909b8eb13"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "50dc87f3-17e1-4a1d-9aed-e838ae422a38"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '2103e2d0-5385-4d8f-95af-53a909b8eb13') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '2103e2d0-5385-4d8f-95af-53a909b8eb13') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 06:20:04.658637"], ["id", "2103e2d0-5385-4d8f-95af-53a909b8eb13"]]  (0.6ms) COMMIT Completed 200 OK in 17ms (Views: 1.0ms | ActiveRecord: 2.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "2103e2d0-5385-4d8f-95af-53a909b8eb13"]]  (0.3ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" SQL (0.8ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:21:20.992995"], ["updated_at", "2015-11-13 06:21:20.992995"]]  (3.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b4543750-d48e-4606-83cc-2bfb35739bf1"], ["created_at", "2015-11-13 06:21:21.016769"], ["updated_at", "2015-11-13 06:21:21.016769"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 01:21:21 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:21:21.061777"], ["updated_at", "2015-11-13 06:21:21.061777"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c7ef03af-7cb6-4058-b288-1f9f896114ed"], ["created_at", "2015-11-13 06:21:21.067204"], ["updated_at", "2015-11-13 06:21:21.067204"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/acf50a65-d42e-41f3-853e-d7cb0ff962b2" for 127.0.0.1 at 2015-11-13 01:21:21 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"acf50a65-d42e-41f3-853e-d7cb0ff962b2"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "acf50a65-d42e-41f3-853e-d7cb0ff962b2"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c7ef03af-7cb6-4058-b288-1f9f896114ed"]] Completed 200 OK in 18ms (Views: 1.4ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:21:21.111532"], ["updated_at", "2015-11-13 06:21:21.111532"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 01:21:21 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"718819f8-e4fe-4eef-a60f-0b621ade0140"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "718819f8-e4fe-4eef-a60f-0b621ade0140"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "718819f8-e4fe-4eef-a60f-0b621ade0140"], ["created_at", "2015-11-13 06:21:21.123017"], ["updated_at", "2015-11-13 06:21:21.123017"]]  (0.6ms) COMMIT Completed 201 Created in 13ms (Views: 0.7ms | ActiveRecord: 2.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:21:21.148159"], ["updated_at", "2015-11-13 06:21:21.148159"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9115a2ed-f3d7-4c0c-b85b-0cb653c5374f"], ["created_at", "2015-11-13 06:21:21.154879"], ["updated_at", "2015-11-13 06:21:21.154879"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/c777f2ab-f993-446c-a4c9-b6a55e5e6c45" for 127.0.0.1 at 2015-11-13 01:21:21 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"c777f2ab-f993-446c-a4c9-b6a55e5e6c45"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "c777f2ab-f993-446c-a4c9-b6a55e5e6c45"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "c777f2ab-f993-446c-a4c9-b6a55e5e6c45"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:21:21.174598"], ["updated_at", "2015-11-13 06:21:21.174598"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "38700b8f-56ed-4a2d-ba5a-d4dd77bacc05"], ["created_at", "2015-11-13 06:21:21.181086"], ["updated_at", "2015-11-13 06:21:21.181086"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/207e721f-2cde-43fe-8a08-5b0803240dfb" for 127.0.0.1 at 2015-11-13 01:21:21 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"207e721f-2cde-43fe-8a08-5b0803240dfb", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"207e721f-2cde-43fe-8a08-5b0803240dfb"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "207e721f-2cde-43fe-8a08-5b0803240dfb"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "38700b8f-56ed-4a2d-ba5a-d4dd77bacc05"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '207e721f-2cde-43fe-8a08-5b0803240dfb') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '207e721f-2cde-43fe-8a08-5b0803240dfb') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 06:21:21.195208"], ["id", "207e721f-2cde-43fe-8a08-5b0803240dfb"]]  (0.7ms) COMMIT Completed 200 OK in 19ms (Views: 1.8ms | ActiveRecord: 2.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "207e721f-2cde-43fe-8a08-5b0803240dfb"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.7ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:29:11.333256"], ["updated_at", "2015-11-13 06:29:11.333256"]]  (3.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "20b48e04-4564-447b-8794-561ff0821160"], ["created_at", "2015-11-13 06:29:11.354820"], ["updated_at", "2015-11-13 06:29:11.354820"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 01:29:11 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:29:11.398705"], ["updated_at", "2015-11-13 06:29:11.398705"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9cc0a2c2-b8fc-443c-b9cf-3109b70e8362"], ["created_at", "2015-11-13 06:29:11.405006"], ["updated_at", "2015-11-13 06:29:11.405006"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/3ddc0ec7-55d5-4808-9702-5061b2437e31" for 127.0.0.1 at 2015-11-13 01:29:11 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"3ddc0ec7-55d5-4808-9702-5061b2437e31"} Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3ddc0ec7-55d5-4808-9702-5061b2437e31"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9cc0a2c2-b8fc-443c-b9cf-3109b70e8362"]] Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:29:11.440101"], ["updated_at", "2015-11-13 06:29:11.440101"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 01:29:11 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"a919dc0c-4c23-4098-96d5-112137fdd823"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a919dc0c-4c23-4098-96d5-112137fdd823"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "a919dc0c-4c23-4098-96d5-112137fdd823"], ["created_at", "2015-11-13 06:29:11.451907"], ["updated_at", "2015-11-13 06:29:11.451907"]]  (0.3ms) COMMIT Completed 201 Created in 12ms (Views: 1.0ms | ActiveRecord: 2.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:29:11.468754"], ["updated_at", "2015-11-13 06:29:11.468754"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 01:29:11 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"69d62082-2c9f-42fb-ba9a-19a35249f988"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "69d62082-2c9f-42fb-ba9a-19a35249f988"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:29:11.506386"], ["updated_at", "2015-11-13 06:29:11.506386"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a029d301-1be2-4a60-8b6a-8ae1a812ecf1"], ["created_at", "2015-11-13 06:29:11.512264"], ["updated_at", "2015-11-13 06:29:11.512264"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/8c6ddcda-6e40-4e1b-a04d-7d5106a1daa5" for 127.0.0.1 at 2015-11-13 01:29:11 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"8c6ddcda-6e40-4e1b-a04d-7d5106a1daa5"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "8c6ddcda-6e40-4e1b-a04d-7d5106a1daa5"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "8c6ddcda-6e40-4e1b-a04d-7d5106a1daa5"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:29:11.532284"], ["updated_at", "2015-11-13 06:29:11.532284"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f15688be-e90b-4c84-b3de-002325005699"], ["created_at", "2015-11-13 06:29:11.538436"], ["updated_at", "2015-11-13 06:29:11.538436"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/89eb8805-b6fd-4c61-a420-259f6ec9d091" for 127.0.0.1 at 2015-11-13 01:29:11 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"89eb8805-b6fd-4c61-a420-259f6ec9d091", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"89eb8805-b6fd-4c61-a420-259f6ec9d091"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "89eb8805-b6fd-4c61-a420-259f6ec9d091"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f15688be-e90b-4c84-b3de-002325005699"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '89eb8805-b6fd-4c61-a420-259f6ec9d091') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '89eb8805-b6fd-4c61-a420-259f6ec9d091') LIMIT 1 SQL (0.6ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 06:29:11.551344"], ["id", "89eb8805-b6fd-4c61-a420-259f6ec9d091"]]  (0.5ms) COMMIT Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 2.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.6ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "89eb8805-b6fd-4c61-a420-259f6ec9d091"]]  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:30:00.439895"], ["updated_at", "2015-11-13 06:30:00.439895"]]  (0.9ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "69a85b90-908c-4e68-bbf9-5e1dbf4b618d"], ["created_at", "2015-11-13 06:30:00.461888"], ["updated_at", "2015-11-13 06:30:00.461888"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 01:30:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:30:00.505869"], ["updated_at", "2015-11-13 06:30:00.505869"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2272947f-af12-4445-86fd-1ef0a4316bc9"], ["created_at", "2015-11-13 06:30:00.511523"], ["updated_at", "2015-11-13 06:30:00.511523"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/f61b7583-44f4-4ab1-ac1e-dd378541c5e4" for 127.0.0.1 at 2015-11-13 01:30:00 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"f61b7583-44f4-4ab1-ac1e-dd378541c5e4"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f61b7583-44f4-4ab1-ac1e-dd378541c5e4"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2272947f-af12-4445-86fd-1ef0a4316bc9"]] Completed 200 OK in 15ms (Views: 1.9ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:30:00.550372"], ["updated_at", "2015-11-13 06:30:00.550372"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 01:30:00 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"af4f42fd-e288-4168-b6e9-7e7782b02dff"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.3ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "af4f42fd-e288-4168-b6e9-7e7782b02dff"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "af4f42fd-e288-4168-b6e9-7e7782b02dff"], ["created_at", "2015-11-13 06:30:00.563540"], ["updated_at", "2015-11-13 06:30:00.563540"]]  (0.6ms) COMMIT Completed 201 Created in 16ms (Views: 1.5ms | ActiveRecord: 2.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:30:00.589025"], ["updated_at", "2015-11-13 06:30:00.589025"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 01:30:00 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"1baf03ed-f533-4115-8632-e881bf1b3f18"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1baf03ed-f533-4115-8632-e881bf1b3f18"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:30:00.618490"], ["updated_at", "2015-11-13 06:30:00.618490"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9499dcaa-accd-4bfa-9ee3-c46545069742"], ["created_at", "2015-11-13 06:30:00.628237"], ["updated_at", "2015-11-13 06:30:00.628237"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/67df5e55-ef7f-4f20-b12d-95049e34743d" for 127.0.0.1 at 2015-11-13 01:30:00 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"67df5e55-ef7f-4f20-b12d-95049e34743d"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "67df5e55-ef7f-4f20-b12d-95049e34743d"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "67df5e55-ef7f-4f20-b12d-95049e34743d"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:30:00.653214"], ["updated_at", "2015-11-13 06:30:00.653214"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "61bb238a-c516-45a8-be36-83cdbe9a2df1"], ["created_at", "2015-11-13 06:30:00.659910"], ["updated_at", "2015-11-13 06:30:00.659910"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/cadafe54-876e-4af7-b90e-5254e010c6f0" for 127.0.0.1 at 2015-11-13 01:30:00 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"cadafe54-876e-4af7-b90e-5254e010c6f0", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"cadafe54-876e-4af7-b90e-5254e010c6f0"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "cadafe54-876e-4af7-b90e-5254e010c6f0"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "61bb238a-c516-45a8-be36-83cdbe9a2df1"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'cadafe54-876e-4af7-b90e-5254e010c6f0') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'cadafe54-876e-4af7-b90e-5254e010c6f0') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 06:30:00.672851"], ["id", "cadafe54-876e-4af7-b90e-5254e010c6f0"]]  (0.6ms) COMMIT Completed 200 OK in 18ms (Views: 1.5ms | ActiveRecord: 2.6ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "cadafe54-876e-4af7-b90e-5254e010c6f0"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:30:10.238856"], ["updated_at", "2015-11-13 06:30:10.238856"]]  (3.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9e693514-fb06-42ae-b2db-6fc3a5ac368e"], ["created_at", "2015-11-13 06:30:10.260488"], ["updated_at", "2015-11-13 06:30:10.260488"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 01:30:10 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:30:10.301526"], ["updated_at", "2015-11-13 06:30:10.301526"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fa8725e7-500d-4bef-87ec-0b597d56e075"], ["created_at", "2015-11-13 06:30:10.306555"], ["updated_at", "2015-11-13 06:30:10.306555"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/9becee93-a38d-4641-9996-62200bfee153" for 127.0.0.1 at 2015-11-13 01:30:10 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"9becee93-a38d-4641-9996-62200bfee153"} Strain::Article Load (0.8ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "9becee93-a38d-4641-9996-62200bfee153"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fa8725e7-500d-4bef-87ec-0b597d56e075"]] Completed 200 OK in 18ms (Views: 1.0ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:30:10.344347"], ["updated_at", "2015-11-13 06:30:10.344347"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 01:30:10 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"0c029f6c-255c-43fe-8a2f-701e1baccb4a"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "0c029f6c-255c-43fe-8a2f-701e1baccb4a"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "0c029f6c-255c-43fe-8a2f-701e1baccb4a"], ["created_at", "2015-11-13 06:30:10.360190"], ["updated_at", "2015-11-13 06:30:10.360190"]]  (0.4ms) COMMIT Completed 201 Created in 16ms (Views: 0.7ms | ActiveRecord: 2.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 06:30:10.376173"], ["updated_at", "2015-11-13 06:30:10.376173"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 01:30:10 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"cc433d99-7029-46ce-ab0a-8398dfca91c8"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "cc433d99-7029-46ce-ab0a-8398dfca91c8"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.3ms) ROLLBACK SQL (2.0ms) DELETE FROM "strain_variants" SQL (0.8ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:01:08.182773"], ["updated_at", "2015-11-13 08:01:08.182773"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3058ff95-28e1-43f7-a533-315a4c7b938b"], ["created_at", "2015-11-13 08:01:08.202053"], ["updated_at", "2015-11-13 08:01:08.202053"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/b76608a2-31d7-4e7f-b5c0-e440cbc7d209" for 127.0.0.1 at 2015-11-13 03:01:08 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"b76608a2-31d7-4e7f-b5c0-e440cbc7d209"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "b76608a2-31d7-4e7f-b5c0-e440cbc7d209"]] SQL (0.6ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "b76608a2-31d7-4e7f-b5c0-e440cbc7d209"]]  (0.6ms) COMMIT Completed 204 No Content in 13ms (Views: 1.5ms | ActiveRecord: 1.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:01:08.261074"], ["updated_at", "2015-11-13 08:01:08.261074"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "363abc65-3a1d-4693-aeb4-da5fb20109ef"], ["created_at", "2015-11-13 08:01:08.270394"], ["updated_at", "2015-11-13 08:01:08.270394"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/3d32cdcb-84f9-432c-b321-02170b975817" for 127.0.0.1 at 2015-11-13 03:01:08 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"3d32cdcb-84f9-432c-b321-02170b975817", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"3d32cdcb-84f9-432c-b321-02170b975817"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3d32cdcb-84f9-432c-b321-02170b975817"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "363abc65-3a1d-4693-aeb4-da5fb20109ef"]] Strain::Article Exists (1.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '3d32cdcb-84f9-432c-b321-02170b975817') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '3d32cdcb-84f9-432c-b321-02170b975817') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:01:08.301971"], ["id", "3d32cdcb-84f9-432c-b321-02170b975817"]]  (0.4ms) COMMIT Completed 200 OK in 33ms (Views: 1.1ms | ActiveRecord: 3.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "3d32cdcb-84f9-432c-b321-02170b975817"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (5.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:42.405374"], ["updated_at", "2015-11-13 08:02:42.405374"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:42.434301"], ["updated_at", "2015-11-13 08:02:42.434301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:42.457477"], ["updated_at", "2015-11-13 08:02:42.457477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:42.479522"], ["updated_at", "2015-11-13 08:02:42.479522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:42.493220"], ["updated_at", "2015-11-13 08:02:42.493220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:42.508940"], ["updated_at", "2015-11-13 08:02:42.508940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "762a1f22-57dc-4eb1-945d-e54d0c1b44fe"], ["created_at", "2015-11-13 08:02:42.517357"], ["updated_at", "2015-11-13 08:02:42.517357"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "762a1f22-57dc-4eb1-945d-e54d0c1b44fe"], ["created_at", "2015-11-13 08:02:42.525667"], ["updated_at", "2015-11-13 08:02:42.525667"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:42.538278"], ["updated_at", "2015-11-13 08:02:42.538278"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "867678a8-35ea-4d60-b7b9-dbf1c9a33417"], ["created_at", "2015-11-13 08:02:42.544472"], ["updated_at", "2015-11-13 08:02:42.544472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:42.564950"], ["updated_at", "2015-11-13 08:02:42.564950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:42.587167"], ["updated_at", "2015-11-13 08:02:42.587167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 08:02:42.605448"], ["updated_at", "2015-11-13 08:02:42.605448"]] SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0a57943b-6032-4b47-8517-7d6baf2c4769"], ["created_at", "2015-11-13 08:02:42.607359"], ["updated_at", "2015-11-13 08:02:42.607359"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:54.727149"], ["updated_at", "2015-11-13 08:02:54.727149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:54.753314"], ["updated_at", "2015-11-13 08:02:54.753314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:54.771864"], ["updated_at", "2015-11-13 08:02:54.771864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:54.793457"], ["updated_at", "2015-11-13 08:02:54.793457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:54.812298"], ["updated_at", "2015-11-13 08:02:54.812298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:54.826408"], ["updated_at", "2015-11-13 08:02:54.826408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "962766a4-1fd1-47cb-be43-5bbd4f92bf84"], ["created_at", "2015-11-13 08:02:54.831705"], ["updated_at", "2015-11-13 08:02:54.831705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "962766a4-1fd1-47cb-be43-5bbd4f92bf84"], ["created_at", "2015-11-13 08:02:54.837118"], ["updated_at", "2015-11-13 08:02:54.837118"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:54.852211"], ["updated_at", "2015-11-13 08:02:54.852211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9b75d3d7-3181-4bcd-8d84-29a1ef52bb32"], ["created_at", "2015-11-13 08:02:54.857930"], ["updated_at", "2015-11-13 08:02:54.857930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:54.870914"], ["updated_at", "2015-11-13 08:02:54.870914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:02:54.888905"], ["updated_at", "2015-11-13 08:02:54.888905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 08:02:54.906863"], ["updated_at", "2015-11-13 08:02:54.906863"]] SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "10cdffb5-3374-4243-baf8-74d5ad989ded"], ["created_at", "2015-11-13 08:02:54.908689"], ["updated_at", "2015-11-13 08:02:54.908689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:03.715533"], ["updated_at", "2015-11-13 08:03:03.715533"]]  (3.3ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1abd5cd6-6c21-4f8e-9e12-370576d7bfc2"], ["created_at", "2015-11-13 08:03:03.737659"], ["updated_at", "2015-11-13 08:03:03.737659"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:03:03 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:03.784398"], ["updated_at", "2015-11-13 08:03:03.784398"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "03990ecc-364e-46c0-b4c7-bf15081e8a0a"], ["created_at", "2015-11-13 08:03:03.789736"], ["updated_at", "2015-11-13 08:03:03.789736"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/b43abb63-6720-40b1-9b0b-5491a5370508" for 127.0.0.1 at 2015-11-13 03:03:03 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"b43abb63-6720-40b1-9b0b-5491a5370508"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "b43abb63-6720-40b1-9b0b-5491a5370508"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "03990ecc-364e-46c0-b4c7-bf15081e8a0a"]] Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:03.825348"], ["updated_at", "2015-11-13 08:03:03.825348"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:03:03 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"7c24b034-59c1-473c-90ba-98a39f9d822b"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "7c24b034-59c1-473c-90ba-98a39f9d822b"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "7c24b034-59c1-473c-90ba-98a39f9d822b"], ["created_at", "2015-11-13 08:03:03.836063"], ["updated_at", "2015-11-13 08:03:03.836063"]]  (0.7ms) COMMIT Completed 201 Created in 15ms (Views: 1.3ms | ActiveRecord: 2.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:03.858208"], ["updated_at", "2015-11-13 08:03:03.858208"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:03:03 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"4fd44fc1-5c66-4a22-affa-aaa8d147ff11"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4fd44fc1-5c66-4a22-affa-aaa8d147ff11"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `model_error_messages' for # /Users/adam/dev/strain/app/models/strain/article.rb:38:in `initialize' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `new' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `_save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:125:in `block in save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:124:in `save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:55:in `block in change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:49:in `change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:105:in `replace_fields' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:205:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:142:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.1ms) ROLLBACK Completed 500 Internal Server Error in 6ms (Views: 0.3ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:03.908296"], ["updated_at", "2015-11-13 08:03:03.908296"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f23afafe-8705-4779-ad76-d36cd436cd9b"], ["created_at", "2015-11-13 08:03:03.913453"], ["updated_at", "2015-11-13 08:03:03.913453"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/d5917f4c-144a-44fc-8a1d-0df0b29b3c8a" for 127.0.0.1 at 2015-11-13 03:03:03 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"d5917f4c-144a-44fc-8a1d-0df0b29b3c8a"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "d5917f4c-144a-44fc-8a1d-0df0b29b3c8a"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "d5917f4c-144a-44fc-8a1d-0df0b29b3c8a"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:03.932344"], ["updated_at", "2015-11-13 08:03:03.932344"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "75e1fb79-ad2f-4290-a9be-24b1788ea10f"], ["created_at", "2015-11-13 08:03:03.938543"], ["updated_at", "2015-11-13 08:03:03.938543"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/039f1a7c-a97c-4ee2-b05b-c6957d9af2a3" for 127.0.0.1 at 2015-11-13 03:03:03 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"039f1a7c-a97c-4ee2-b05b-c6957d9af2a3", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"039f1a7c-a97c-4ee2-b05b-c6957d9af2a3"}  (0.3ms) BEGIN Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "039f1a7c-a97c-4ee2-b05b-c6957d9af2a3"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "75e1fb79-ad2f-4290-a9be-24b1788ea10f"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '039f1a7c-a97c-4ee2-b05b-c6957d9af2a3') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '039f1a7c-a97c-4ee2-b05b-c6957d9af2a3') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:03:03.954180"], ["id", "039f1a7c-a97c-4ee2-b05b-c6957d9af2a3"]]  (0.6ms) COMMIT Completed 200 OK in 20ms (Views: 1.4ms | ActiveRecord: 3.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "039f1a7c-a97c-4ee2-b05b-c6957d9af2a3"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:25.571247"], ["updated_at", "2015-11-13 08:03:25.571247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:25.594986"], ["updated_at", "2015-11-13 08:03:25.594986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:25.614809"], ["updated_at", "2015-11-13 08:03:25.614809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:25.633302"], ["updated_at", "2015-11-13 08:03:25.633302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:25.653291"], ["updated_at", "2015-11-13 08:03:25.653291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:25.668225"], ["updated_at", "2015-11-13 08:03:25.668225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "233a2c5e-94b7-4f3f-8512-d8a3203d97f1"], ["created_at", "2015-11-13 08:03:25.674726"], ["updated_at", "2015-11-13 08:03:25.674726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "233a2c5e-94b7-4f3f-8512-d8a3203d97f1"], ["created_at", "2015-11-13 08:03:25.679674"], ["updated_at", "2015-11-13 08:03:25.679674"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:25.691469"], ["updated_at", "2015-11-13 08:03:25.691469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a798048c-ea88-4aba-b586-cb8876ca53c0"], ["created_at", "2015-11-13 08:03:25.697239"], ["updated_at", "2015-11-13 08:03:25.697239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:25.715119"], ["updated_at", "2015-11-13 08:03:25.715119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:25.731259"], ["updated_at", "2015-11-13 08:03:25.731259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 08:03:25.748884"], ["updated_at", "2015-11-13 08:03:25.748884"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "36e8c88e-8ec3-4803-bd34-152528fd67e5"], ["created_at", "2015-11-13 08:03:25.750917"], ["updated_at", "2015-11-13 08:03:25.750917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:30.535329"], ["updated_at", "2015-11-13 08:03:30.535329"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a343f5c4-0e3f-4189-b72a-3c91e45754bb"], ["created_at", "2015-11-13 08:03:30.556017"], ["updated_at", "2015-11-13 08:03:30.556017"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:03:30 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:30.603598"], ["updated_at", "2015-11-13 08:03:30.603598"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0d84b550-b91a-42dc-ac7b-706595feffab"], ["created_at", "2015-11-13 08:03:30.612791"], ["updated_at", "2015-11-13 08:03:30.612791"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/f7bc3858-0823-438b-9859-1df740e0748b" for 127.0.0.1 at 2015-11-13 03:03:30 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"f7bc3858-0823-438b-9859-1df740e0748b"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f7bc3858-0823-438b-9859-1df740e0748b"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "0d84b550-b91a-42dc-ac7b-706595feffab"]] Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:30.648536"], ["updated_at", "2015-11-13 08:03:30.648536"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:03:30 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"a744b623-70f3-4799-9baf-05750e554b7b"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a744b623-70f3-4799-9baf-05750e554b7b"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "a744b623-70f3-4799-9baf-05750e554b7b"], ["created_at", "2015-11-13 08:03:30.660024"], ["updated_at", "2015-11-13 08:03:30.660024"]]  (0.5ms) COMMIT Completed 201 Created in 14ms (Views: 1.5ms | ActiveRecord: 1.9ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:30.684056"], ["updated_at", "2015-11-13 08:03:30.684056"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:03:30 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"8f072026-bd32-4fa7-9024-6df88d7dc5e9"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "8f072026-bd32-4fa7-9024-6df88d7dc5e9"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:30.713811"], ["updated_at", "2015-11-13 08:03:30.713811"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "281dd954-4aef-4534-b920-ec08dacc6dbf"], ["created_at", "2015-11-13 08:03:30.721833"], ["updated_at", "2015-11-13 08:03:30.721833"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/f7668ba4-d922-454f-835d-d812a2052203" for 127.0.0.1 at 2015-11-13 03:03:30 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"f7668ba4-d922-454f-835d-d812a2052203"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f7668ba4-d922-454f-835d-d812a2052203"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "f7668ba4-d922-454f-835d-d812a2052203"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:03:30.745056"], ["updated_at", "2015-11-13 08:03:30.745056"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2bc46100-bfef-47fa-96bb-b9c12883f5d2"], ["created_at", "2015-11-13 08:03:30.751111"], ["updated_at", "2015-11-13 08:03:30.751111"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/articles/9e7a577a-99a0-4bfd-afab-18cb5619866f" for 127.0.0.1 at 2015-11-13 03:03:30 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"9e7a577a-99a0-4bfd-afab-18cb5619866f", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"9e7a577a-99a0-4bfd-afab-18cb5619866f"}  (0.2ms) BEGIN Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "9e7a577a-99a0-4bfd-afab-18cb5619866f"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2bc46100-bfef-47fa-96bb-b9c12883f5d2"]] Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '9e7a577a-99a0-4bfd-afab-18cb5619866f') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '9e7a577a-99a0-4bfd-afab-18cb5619866f') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:03:30.770089"], ["id", "9e7a577a-99a0-4bfd-afab-18cb5619866f"]]  (0.5ms) COMMIT Completed 200 OK in 20ms (Views: 0.9ms | ActiveRecord: 3.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "9e7a577a-99a0-4bfd-afab-18cb5619866f"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:09.158071"], ["updated_at", "2015-11-13 08:04:09.158071"]]  (3.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c95a8c1f-c025-46a7-af7b-b00f316fbde7"], ["created_at", "2015-11-13 08:04:09.179589"], ["updated_at", "2015-11-13 08:04:09.179589"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:04:09 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:09.219323"], ["updated_at", "2015-11-13 08:04:09.219323"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4b869bfe-1480-427d-8fb6-d8f5aecfa1c6"], ["created_at", "2015-11-13 08:04:09.227858"], ["updated_at", "2015-11-13 08:04:09.227858"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/1025a119-d987-469b-a5d9-67b97ea264c6" for 127.0.0.1 at 2015-11-13 03:04:09 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"1025a119-d987-469b-a5d9-67b97ea264c6"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "1025a119-d987-469b-a5d9-67b97ea264c6"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4b869bfe-1480-427d-8fb6-d8f5aecfa1c6"]] Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:09.262025"], ["updated_at", "2015-11-13 08:04:09.262025"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:04:09 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"d92a3d6b-c3f2-4e5a-9efb-50649ff07a6b"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "d92a3d6b-c3f2-4e5a-9efb-50649ff07a6b"]] Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "d92a3d6b-c3f2-4e5a-9efb-50649ff07a6b"], ["created_at", "2015-11-13 08:04:09.278986"], ["updated_at", "2015-11-13 08:04:09.278986"]]  (0.5ms) COMMIT Completed 201 Created in 18ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:09.296212"], ["updated_at", "2015-11-13 08:04:09.296212"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:04:09 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"3de10a0c-8f21-48bc-be19-79d8a3ea60a7"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "3de10a0c-8f21-48bc-be19-79d8a3ea60a7"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 9ms (Views: 0.5ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:09.322212"], ["updated_at", "2015-11-13 08:04:09.322212"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d0b969a8-fe05-4272-a144-c336370309a7"], ["created_at", "2015-11-13 08:04:09.328177"], ["updated_at", "2015-11-13 08:04:09.328177"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/articles/4977c956-f9f2-4df3-a0a7-bc33bb1d7bef" for 127.0.0.1 at 2015-11-13 03:04:09 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"4977c956-f9f2-4df3-a0a7-bc33bb1d7bef"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "4977c956-f9f2-4df3-a0a7-bc33bb1d7bef"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "4977c956-f9f2-4df3-a0a7-bc33bb1d7bef"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:09.350231"], ["updated_at", "2015-11-13 08:04:09.350231"]]  (0.7ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e9930a39-a7ae-4b9b-9f9d-dea391616994"], ["created_at", "2015-11-13 08:04:09.359067"], ["updated_at", "2015-11-13 08:04:09.359067"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/5ad0023a-c67b-4d65-8eaa-857e5c0341a1" for 127.0.0.1 at 2015-11-13 03:04:09 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"5ad0023a-c67b-4d65-8eaa-857e5c0341a1", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"5ad0023a-c67b-4d65-8eaa-857e5c0341a1"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5ad0023a-c67b-4d65-8eaa-857e5c0341a1"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e9930a39-a7ae-4b9b-9f9d-dea391616994"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5ad0023a-c67b-4d65-8eaa-857e5c0341a1') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5ad0023a-c67b-4d65-8eaa-857e5c0341a1') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:04:09.374382"], ["id", "5ad0023a-c67b-4d65-8eaa-857e5c0341a1"]]  (0.5ms) COMMIT Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "5ad0023a-c67b-4d65-8eaa-857e5c0341a1"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:22.820343"], ["updated_at", "2015-11-13 08:04:22.820343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:22.848500"], ["updated_at", "2015-11-13 08:04:22.848500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:22.868699"], ["updated_at", "2015-11-13 08:04:22.868699"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:22.892015"], ["updated_at", "2015-11-13 08:04:22.892015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:22.906294"], ["updated_at", "2015-11-13 08:04:22.906294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:22.927399"], ["updated_at", "2015-11-13 08:04:22.927399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ec52165a-4f26-4449-a90e-224cbb4bde35"], ["created_at", "2015-11-13 08:04:22.934369"], ["updated_at", "2015-11-13 08:04:22.934369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ec52165a-4f26-4449-a90e-224cbb4bde35"], ["created_at", "2015-11-13 08:04:22.939584"], ["updated_at", "2015-11-13 08:04:22.939584"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:22.951316"], ["updated_at", "2015-11-13 08:04:22.951316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d03e9580-4c38-4878-bc03-e5c8e6990974"], ["created_at", "2015-11-13 08:04:22.956699"], ["updated_at", "2015-11-13 08:04:22.956699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:22.972776"], ["updated_at", "2015-11-13 08:04:22.972776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:22.994697"], ["updated_at", "2015-11-13 08:04:22.994697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 08:04:23.012844"], ["updated_at", "2015-11-13 08:04:23.012844"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9196ae0e-be77-44c3-8a05-bce00aad9fd2"], ["created_at", "2015-11-13 08:04:23.014939"], ["updated_at", "2015-11-13 08:04:23.014939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:27.321131"], ["updated_at", "2015-11-13 08:04:27.321131"]]  (3.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "455535b9-79cd-488b-922c-2fde3dc6ff8b"], ["created_at", "2015-11-13 08:04:27.338435"], ["updated_at", "2015-11-13 08:04:27.338435"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:04:27 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:27.383827"], ["updated_at", "2015-11-13 08:04:27.383827"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6d3e29ab-8807-498c-9b14-d859dbf8f99e"], ["created_at", "2015-11-13 08:04:27.393557"], ["updated_at", "2015-11-13 08:04:27.393557"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/bf72e010-ca66-4da7-9fdd-88ca8d735d7c" for 127.0.0.1 at 2015-11-13 03:04:27 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"bf72e010-ca66-4da7-9fdd-88ca8d735d7c"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "bf72e010-ca66-4da7-9fdd-88ca8d735d7c"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6d3e29ab-8807-498c-9b14-d859dbf8f99e"]] Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:27.431397"], ["updated_at", "2015-11-13 08:04:27.431397"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:04:27 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"71c33c93-e491-438c-be11-e9b187f5d31a"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "71c33c93-e491-438c-be11-e9b187f5d31a"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "71c33c93-e491-438c-be11-e9b187f5d31a"], ["created_at", "2015-11-13 08:04:27.449118"], ["updated_at", "2015-11-13 08:04:27.449118"]]  (0.3ms) COMMIT Completed 201 Created in 16ms (Views: 0.9ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:27.472504"], ["updated_at", "2015-11-13 08:04:27.472504"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:04:27 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"a55817b2-4b73-4961-a17e-998de2a5b0ef"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a55817b2-4b73-4961-a17e-998de2a5b0ef"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `model_error_messages' for # /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:5:in `initialize' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `new' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `_save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:125:in `block in save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:124:in `save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:55:in `block in change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:49:in `change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:105:in `replace_fields' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:205:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:152:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.1ms) ROLLBACK Completed 500 Internal Server Error in 7ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:27.514617"], ["updated_at", "2015-11-13 08:04:27.514617"]]  (0.6ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d5f072e9-7607-43ff-8ef3-6ed5c48afe0a"], ["created_at", "2015-11-13 08:04:27.525203"], ["updated_at", "2015-11-13 08:04:27.525203"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/474ddf88-f048-4108-8bdd-aa5cc90730c8" for 127.0.0.1 at 2015-11-13 03:04:27 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"474ddf88-f048-4108-8bdd-aa5cc90730c8"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "474ddf88-f048-4108-8bdd-aa5cc90730c8"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "474ddf88-f048-4108-8bdd-aa5cc90730c8"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:27.550503"], ["updated_at", "2015-11-13 08:04:27.550503"]]  (0.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4fef77b2-67d0-44fa-94f9-bd4e76a803f9"], ["created_at", "2015-11-13 08:04:27.557745"], ["updated_at", "2015-11-13 08:04:27.557745"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/9855853a-9a21-4d4a-b7f8-c731a507133f" for 127.0.0.1 at 2015-11-13 03:04:27 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"9855853a-9a21-4d4a-b7f8-c731a507133f", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"9855853a-9a21-4d4a-b7f8-c731a507133f"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "9855853a-9a21-4d4a-b7f8-c731a507133f"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4fef77b2-67d0-44fa-94f9-bd4e76a803f9"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '9855853a-9a21-4d4a-b7f8-c731a507133f') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '9855853a-9a21-4d4a-b7f8-c731a507133f') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:04:27.574933"], ["id", "9855853a-9a21-4d4a-b7f8-c731a507133f"]]  (0.7ms) COMMIT Completed 200 OK in 21ms (Views: 1.4ms | ActiveRecord: 2.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "9855853a-9a21-4d4a-b7f8-c731a507133f"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:36.056168"], ["updated_at", "2015-11-13 08:04:36.056168"]]  (0.6ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ed543298-1d5c-4cfb-a02a-3dcfcd58359c"], ["created_at", "2015-11-13 08:04:36.072176"], ["updated_at", "2015-11-13 08:04:36.072176"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:04:36 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:36.119713"], ["updated_at", "2015-11-13 08:04:36.119713"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "33f65a36-79a1-4a56-9a80-327a130018bf"], ["created_at", "2015-11-13 08:04:36.125467"], ["updated_at", "2015-11-13 08:04:36.125467"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/88401e4d-b2b3-4df4-8dae-cca344775291" for 127.0.0.1 at 2015-11-13 03:04:36 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"88401e4d-b2b3-4df4-8dae-cca344775291"} Strain::Article Load (0.9ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "88401e4d-b2b3-4df4-8dae-cca344775291"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "33f65a36-79a1-4a56-9a80-327a130018bf"]] Completed 200 OK in 18ms (Views: 1.4ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:36.166562"], ["updated_at", "2015-11-13 08:04:36.166562"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:04:36 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"725168d2-f118-4b59-92b5-084ea5526e37"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "725168d2-f118-4b59-92b5-084ea5526e37"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "725168d2-f118-4b59-92b5-084ea5526e37"], ["created_at", "2015-11-13 08:04:36.177770"], ["updated_at", "2015-11-13 08:04:36.177770"]]  (0.4ms) COMMIT Completed 201 Created in 14ms (Views: 1.3ms | ActiveRecord: 1.7ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:36.199968"], ["updated_at", "2015-11-13 08:04:36.199968"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:04:36 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"200fcb3b-1464-4b83-8a78-765eb2791239"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "200fcb3b-1464-4b83-8a78-765eb2791239"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `model_error_messages' for # /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:5:in `initialize' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `new' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `_save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:125:in `block in save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:124:in `save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:55:in `block in change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:49:in `change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:105:in `replace_fields' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:205:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:152:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.1ms) ROLLBACK Completed 500 Internal Server Error in 7ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:36.243418"], ["updated_at", "2015-11-13 08:04:36.243418"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f20454fa-57a7-4491-a39b-f80c9c6e6da6"], ["created_at", "2015-11-13 08:04:36.249485"], ["updated_at", "2015-11-13 08:04:36.249485"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/articles/ae24c0e5-084f-42d6-be19-61993c00b807" for 127.0.0.1 at 2015-11-13 03:04:36 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"ae24c0e5-084f-42d6-be19-61993c00b807"}  (0.2ms) BEGIN Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ae24c0e5-084f-42d6-be19-61993c00b807"]] SQL (0.4ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "ae24c0e5-084f-42d6-be19-61993c00b807"]]  (0.6ms) COMMIT Completed 204 No Content in 6ms (Views: 0.2ms | ActiveRecord: 1.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:04:36.275469"], ["updated_at", "2015-11-13 08:04:36.275469"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b10bf813-80fc-4f09-92f6-0872fde47628"], ["created_at", "2015-11-13 08:04:36.280858"], ["updated_at", "2015-11-13 08:04:36.280858"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/fe7d2322-ec75-4ea0-b1b6-28110b769d05" for 127.0.0.1 at 2015-11-13 03:04:36 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"fe7d2322-ec75-4ea0-b1b6-28110b769d05", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"fe7d2322-ec75-4ea0-b1b6-28110b769d05"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "fe7d2322-ec75-4ea0-b1b6-28110b769d05"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b10bf813-80fc-4f09-92f6-0872fde47628"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'fe7d2322-ec75-4ea0-b1b6-28110b769d05') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'fe7d2322-ec75-4ea0-b1b6-28110b769d05') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:04:36.294418"], ["id", "fe7d2322-ec75-4ea0-b1b6-28110b769d05"]]  (0.6ms) COMMIT Completed 200 OK in 15ms (Views: 1.1ms | ActiveRecord: 2.5ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "fe7d2322-ec75-4ea0-b1b6-28110b769d05"]]  (0.3ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:00.505614"], ["updated_at", "2015-11-13 08:05:00.505614"]]  (3.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "acc24eec-4e5a-43ab-890c-f8f83ca13d75"], ["created_at", "2015-11-13 08:05:00.528367"], ["updated_at", "2015-11-13 08:05:00.528367"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:05:00 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:00.570763"], ["updated_at", "2015-11-13 08:05:00.570763"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4ac6f479-f4c6-4e93-a63c-1dc0b8300863"], ["created_at", "2015-11-13 08:05:00.579316"], ["updated_at", "2015-11-13 08:05:00.579316"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/2e52f1c4-fd5c-4468-9f0c-737de58aade7" for 127.0.0.1 at 2015-11-13 03:05:00 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"2e52f1c4-fd5c-4468-9f0c-737de58aade7"} Strain::Article Load (0.9ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2e52f1c4-fd5c-4468-9f0c-737de58aade7"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4ac6f479-f4c6-4e93-a63c-1dc0b8300863"]] Completed 200 OK in 15ms (Views: 1.2ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:00.617541"], ["updated_at", "2015-11-13 08:05:00.617541"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:05:00 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"9b805c26-088f-4fa4-bde7-76e4181597f9"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9b805c26-088f-4fa4-bde7-76e4181597f9"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "9b805c26-088f-4fa4-bde7-76e4181597f9"], ["created_at", "2015-11-13 08:05:00.633409"], ["updated_at", "2015-11-13 08:05:00.633409"]]  (0.3ms) COMMIT Completed 201 Created in 17ms (Views: 0.9ms | ActiveRecord: 2.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:00.650776"], ["updated_at", "2015-11-13 08:05:00.650776"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:05:00 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"aa2efd2a-23b3-4df5-a068-9c57f479e33d"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "aa2efd2a-23b3-4df5-a068-9c57f479e33d"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `flat_map' for nil:NilClass /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/exceptions.rb:310:in `errors' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:210:in `rescue in apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:204:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:150:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.1ms) ROLLBACK Completed 500 Internal Server Error in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:00.690916"], ["updated_at", "2015-11-13 08:05:00.690916"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b5e9a0d8-bbf8-4785-bb5a-c8d9d0865eec"], ["created_at", "2015-11-13 08:05:00.699546"], ["updated_at", "2015-11-13 08:05:00.699546"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/2c6ad078-e658-4f9f-96b8-e49a67713aa4" for 127.0.0.1 at 2015-11-13 03:05:00 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"2c6ad078-e658-4f9f-96b8-e49a67713aa4"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2c6ad078-e658-4f9f-96b8-e49a67713aa4"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "2c6ad078-e658-4f9f-96b8-e49a67713aa4"]]  (0.4ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:00.720260"], ["updated_at", "2015-11-13 08:05:00.720260"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "100be960-caf8-4151-b72e-5ae799933f0b"], ["created_at", "2015-11-13 08:05:00.725608"], ["updated_at", "2015-11-13 08:05:00.725608"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/articles/7a14fff7-7f73-45d5-8be6-46781cfccacb" for 127.0.0.1 at 2015-11-13 03:05:00 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"7a14fff7-7f73-45d5-8be6-46781cfccacb", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"7a14fff7-7f73-45d5-8be6-46781cfccacb"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "7a14fff7-7f73-45d5-8be6-46781cfccacb"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "100be960-caf8-4151-b72e-5ae799933f0b"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '7a14fff7-7f73-45d5-8be6-46781cfccacb') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '7a14fff7-7f73-45d5-8be6-46781cfccacb') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:05:00.739514"], ["id", "7a14fff7-7f73-45d5-8be6-46781cfccacb"]]  (0.5ms) COMMIT Completed 200 OK in 16ms (Views: 0.7ms | ActiveRecord: 2.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "7a14fff7-7f73-45d5-8be6-46781cfccacb"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:28.019904"], ["updated_at", "2015-11-13 08:05:28.019904"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f5ac82c5-2527-44a8-8dfe-80025778c25f"], ["created_at", "2015-11-13 08:05:28.038757"], ["updated_at", "2015-11-13 08:05:28.038757"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:05:28 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:28.086178"], ["updated_at", "2015-11-13 08:05:28.086178"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c7ea9aa6-061b-423c-b52a-a7deb790b190"], ["created_at", "2015-11-13 08:05:28.092540"], ["updated_at", "2015-11-13 08:05:28.092540"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/c7243184-7f2b-4725-94cb-754afc236202" for 127.0.0.1 at 2015-11-13 03:05:28 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"c7243184-7f2b-4725-94cb-754afc236202"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "c7243184-7f2b-4725-94cb-754afc236202"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c7ea9aa6-061b-423c-b52a-a7deb790b190"]] Completed 200 OK in 15ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:28.130769"], ["updated_at", "2015-11-13 08:05:28.130769"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:05:28 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"a763f1eb-4c96-4e42-a205-a694076f82c1"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a763f1eb-4c96-4e42-a205-a694076f82c1"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "a763f1eb-4c96-4e42-a205-a694076f82c1"], ["created_at", "2015-11-13 08:05:28.147247"], ["updated_at", "2015-11-13 08:05:28.147247"]]  (0.3ms) COMMIT Completed 201 Created in 17ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:28.165536"], ["updated_at", "2015-11-13 08:05:28.165536"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:05:28 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"96bc45ac-8cdc-4f5f-9d63-ef2090300a3d"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "96bc45ac-8cdc-4f5f-9d63-ef2090300a3d"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:28.193823"], ["updated_at", "2015-11-13 08:05:28.193823"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "bb8a31f5-65fc-4625-a5cd-83d5e75bc4fd"], ["created_at", "2015-11-13 08:05:28.201529"], ["updated_at", "2015-11-13 08:05:28.201529"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/90211170-2c5d-413e-acfc-674dae7a0f57" for 127.0.0.1 at 2015-11-13 03:05:28 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"90211170-2c5d-413e-acfc-674dae7a0f57"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "90211170-2c5d-413e-acfc-674dae7a0f57"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "90211170-2c5d-413e-acfc-674dae7a0f57"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:05:28.223906"], ["updated_at", "2015-11-13 08:05:28.223906"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9b1d2c99-bc89-4cdd-bf9a-cbd9d2d34786"], ["created_at", "2015-11-13 08:05:28.232930"], ["updated_at", "2015-11-13 08:05:28.232930"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/8f55d14b-4271-4bd2-97ee-38bb5dfcfb73" for 127.0.0.1 at 2015-11-13 03:05:28 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"8f55d14b-4271-4bd2-97ee-38bb5dfcfb73", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"8f55d14b-4271-4bd2-97ee-38bb5dfcfb73"}  (0.2ms) BEGIN Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "8f55d14b-4271-4bd2-97ee-38bb5dfcfb73"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9b1d2c99-bc89-4cdd-bf9a-cbd9d2d34786"]] Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '8f55d14b-4271-4bd2-97ee-38bb5dfcfb73') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '8f55d14b-4271-4bd2-97ee-38bb5dfcfb73') LIMIT 1 SQL (0.6ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:05:28.252799"], ["id", "8f55d14b-4271-4bd2-97ee-38bb5dfcfb73"]]  (0.3ms) COMMIT Completed 200 OK in 22ms (Views: 2.2ms | ActiveRecord: 3.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "8f55d14b-4271-4bd2-97ee-38bb5dfcfb73"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (23.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:25:30.468035"], ["updated_at", "2015-11-13 08:25:30.468035"]]  (1.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "42bd5acd-2d76-4c25-b5bd-af2d9834e7d4"], ["created_at", "2015-11-13 08:25:30.506768"], ["updated_at", "2015-11-13 08:25:30.506768"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:25:30 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:25:30.552180"], ["updated_at", "2015-11-13 08:25:30.552180"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9c8bfb0c-b0c9-4249-9e8b-4d1064a0fcdc"], ["created_at", "2015-11-13 08:25:30.560775"], ["updated_at", "2015-11-13 08:25:30.560775"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/f01b87a7-842d-4a69-9989-6f03868394ff" for 127.0.0.1 at 2015-11-13 03:25:30 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"f01b87a7-842d-4a69-9989-6f03868394ff"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f01b87a7-842d-4a69-9989-6f03868394ff"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9c8bfb0c-b0c9-4249-9e8b-4d1064a0fcdc"]] Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:25:30.598320"], ["updated_at", "2015-11-13 08:25:30.598320"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:25:30 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"1a32b804-f7af-4759-bb2b-624b52f1074d"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1a32b804-f7af-4759-bb2b-624b52f1074d"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "1a32b804-f7af-4759-bb2b-624b52f1074d"], ["created_at", "2015-11-13 08:25:30.614226"], ["updated_at", "2015-11-13 08:25:30.614226"]]  (0.5ms) COMMIT Completed 201 Created in 17ms (Views: 0.7ms | ActiveRecord: 2.7ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:25:30.631568"], ["updated_at", "2015-11-13 08:25:30.631568"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:25:30 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"09d87e77-e675-4c48-9b9b-25aeb8a1695d"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "09d87e77-e675-4c48-9b9b-25aeb8a1695d"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:25:30.654699"], ["updated_at", "2015-11-13 08:25:30.654699"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "aaad10f1-0642-400f-a20a-a46157a231c1"], ["created_at", "2015-11-13 08:25:30.660534"], ["updated_at", "2015-11-13 08:25:30.660534"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/articles/73e50af1-e015-4444-b2f1-819512656b15" for 127.0.0.1 at 2015-11-13 03:25:30 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"73e50af1-e015-4444-b2f1-819512656b15"}  (0.1ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "73e50af1-e015-4444-b2f1-819512656b15"]] SQL (0.5ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "73e50af1-e015-4444-b2f1-819512656b15"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:25:30.681019"], ["updated_at", "2015-11-13 08:25:30.681019"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3a92be29-e369-4b16-bd9b-9a719fc36196"], ["created_at", "2015-11-13 08:25:30.686287"], ["updated_at", "2015-11-13 08:25:30.686287"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/321af9c5-e355-4784-a575-dda8e04380b0" for 127.0.0.1 at 2015-11-13 03:25:30 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"321af9c5-e355-4784-a575-dda8e04380b0", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"321af9c5-e355-4784-a575-dda8e04380b0"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "321af9c5-e355-4784-a575-dda8e04380b0"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "3a92be29-e369-4b16-bd9b-9a719fc36196"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '321af9c5-e355-4784-a575-dda8e04380b0') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '321af9c5-e355-4784-a575-dda8e04380b0') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:25:30.697897"], ["id", "321af9c5-e355-4784-a575-dda8e04380b0"]]  (0.6ms) COMMIT Completed 200 OK in 16ms (Views: 1.3ms | ActiveRecord: 2.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "321af9c5-e355-4784-a575-dda8e04380b0"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:13.058522"], ["updated_at", "2015-11-13 08:26:13.058522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:13.082045"], ["updated_at", "2015-11-13 08:26:13.082045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:13.105226"], ["updated_at", "2015-11-13 08:26:13.105226"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:13.123592"], ["updated_at", "2015-11-13 08:26:13.123592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:13.137913"], ["updated_at", "2015-11-13 08:26:13.137913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:13.152525"], ["updated_at", "2015-11-13 08:26:13.152525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "51fedf99-46cf-44f5-a069-457fcb0c6ee4"], ["created_at", "2015-11-13 08:26:13.158394"], ["updated_at", "2015-11-13 08:26:13.158394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "51fedf99-46cf-44f5-a069-457fcb0c6ee4"], ["created_at", "2015-11-13 08:26:13.163838"], ["updated_at", "2015-11-13 08:26:13.163838"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:13.176012"], ["updated_at", "2015-11-13 08:26:13.176012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0d4cb264-5a7f-4044-ad06-6e5925ced10d"], ["created_at", "2015-11-13 08:26:13.181521"], ["updated_at", "2015-11-13 08:26:13.181521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:13.198252"], ["updated_at", "2015-11-13 08:26:13.198252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:13.214594"], ["updated_at", "2015-11-13 08:26:13.214594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-13 08:26:13.232033"], ["updated_at", "2015-11-13 08:26:13.232033"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cd3a27ae-385f-412b-a2c5-32fd66807bf7"], ["created_at", "2015-11-13 08:26:13.234330"], ["updated_at", "2015-11-13 08:26:13.234330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:23.498145"], ["updated_at", "2015-11-13 08:26:23.498145"]]  (3.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "40abc4f1-c6fb-4e72-83e4-d598903cefda"], ["created_at", "2015-11-13 08:26:23.519579"], ["updated_at", "2015-11-13 08:26:23.519579"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:26:23 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:23.567681"], ["updated_at", "2015-11-13 08:26:23.567681"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cb9fc330-2d13-4303-8557-649417a7f2f2"], ["created_at", "2015-11-13 08:26:23.573527"], ["updated_at", "2015-11-13 08:26:23.573527"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/5601087d-4851-4e76-9999-a8df5ae46382" for 127.0.0.1 at 2015-11-13 03:26:23 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"5601087d-4851-4e76-9999-a8df5ae46382"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5601087d-4851-4e76-9999-a8df5ae46382"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "cb9fc330-2d13-4303-8557-649417a7f2f2"]] Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:23.609807"], ["updated_at", "2015-11-13 08:26:23.609807"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:26:23 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"bbe77875-4f36-4f94-8aaa-37e37f99d705"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "bbe77875-4f36-4f94-8aaa-37e37f99d705"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "bbe77875-4f36-4f94-8aaa-37e37f99d705"], ["created_at", "2015-11-13 08:26:23.621448"], ["updated_at", "2015-11-13 08:26:23.621448"]]  (0.6ms) COMMIT Completed 201 Created in 15ms (Views: 1.4ms | ActiveRecord: 2.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:23.644712"], ["updated_at", "2015-11-13 08:26:23.644712"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:26:23 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"1ae74d4f-c6c8-4e9b-8167-72ecae693443"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1ae74d4f-c6c8-4e9b-8167-72ecae693443"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:23.670602"], ["updated_at", "2015-11-13 08:26:23.670602"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5827cab8-ab14-46a5-a856-5ecfd56fa65e"], ["created_at", "2015-11-13 08:26:23.677794"], ["updated_at", "2015-11-13 08:26:23.677794"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/ae2dbe36-2634-4308-9f8a-21718de2933d" for 127.0.0.1 at 2015-11-13 03:26:23 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"ae2dbe36-2634-4308-9f8a-21718de2933d"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ae2dbe36-2634-4308-9f8a-21718de2933d"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "ae2dbe36-2634-4308-9f8a-21718de2933d"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:23.700342"], ["updated_at", "2015-11-13 08:26:23.700342"]]  (0.7ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "13dedb27-0df9-4722-949b-548cc9505f80"], ["created_at", "2015-11-13 08:26:23.709471"], ["updated_at", "2015-11-13 08:26:23.709471"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/articles/5f73299e-f219-45a7-bfc6-bdd2be55d750" for 127.0.0.1 at 2015-11-13 03:26:23 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"5f73299e-f219-45a7-bfc6-bdd2be55d750", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"5f73299e-f219-45a7-bfc6-bdd2be55d750"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5f73299e-f219-45a7-bfc6-bdd2be55d750"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "13dedb27-0df9-4722-949b-548cc9505f80"]] Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5f73299e-f219-45a7-bfc6-bdd2be55d750') LIMIT 1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5f73299e-f219-45a7-bfc6-bdd2be55d750') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:26:23.729610"], ["id", "5f73299e-f219-45a7-bfc6-bdd2be55d750"]]  (0.4ms) COMMIT Completed 200 OK in 19ms (Views: 0.9ms | ActiveRecord: 3.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "5f73299e-f219-45a7-bfc6-bdd2be55d750"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:38.632048"], ["updated_at", "2015-11-13 08:26:38.632048"]]  (3.2ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "905c836b-f216-442e-848d-187f4f0aedf8"], ["created_at", "2015-11-13 08:26:38.651055"], ["updated_at", "2015-11-13 08:26:38.651055"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:26:38 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:38.697410"], ["updated_at", "2015-11-13 08:26:38.697410"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "22cc8b81-599d-48a3-80a5-e2730123d6ee"], ["created_at", "2015-11-13 08:26:38.702883"], ["updated_at", "2015-11-13 08:26:38.702883"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/fcbbbd26-273d-47f4-81b4-2aaf469f6e7d" for 127.0.0.1 at 2015-11-13 03:26:38 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"fcbbbd26-273d-47f4-81b4-2aaf469f6e7d"} Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "fcbbbd26-273d-47f4-81b4-2aaf469f6e7d"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "22cc8b81-599d-48a3-80a5-e2730123d6ee"]] Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:38.740827"], ["updated_at", "2015-11-13 08:26:38.740827"]]  (0.2ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:26:38 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"fe5a087c-df61-4bac-b7de-7bea4d180226"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fe5a087c-df61-4bac-b7de-7bea4d180226"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "fe5a087c-df61-4bac-b7de-7bea4d180226"], ["created_at", "2015-11-13 08:26:38.753073"], ["updated_at", "2015-11-13 08:26:38.753073"]]  (1.2ms) COMMIT Completed 201 Created in 13ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (1.0ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:38.772487"], ["updated_at", "2015-11-13 08:26:38.772487"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:26:38 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"fe429a79-79cd-4864-bbba-339c72809f2b"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fe429a79-79cd-4864-bbba-339c72809f2b"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:38.801809"], ["updated_at", "2015-11-13 08:26:38.801809"]]  (0.6ms) COMMIT  (0.3ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9a4e2326-12f4-4d96-9dba-0c4bae2dfe79"], ["created_at", "2015-11-13 08:26:38.809379"], ["updated_at", "2015-11-13 08:26:38.809379"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/94e5a236-a94f-4455-b28d-2ea906b7e579" for 127.0.0.1 at 2015-11-13 03:26:38 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"94e5a236-a94f-4455-b28d-2ea906b7e579"}  (0.2ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "94e5a236-a94f-4455-b28d-2ea906b7e579"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "94e5a236-a94f-4455-b28d-2ea906b7e579"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:38.831556"], ["updated_at", "2015-11-13 08:26:38.831556"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "40fbde35-55c2-4760-a3f2-1df85d68aab2"], ["created_at", "2015-11-13 08:26:38.840666"], ["updated_at", "2015-11-13 08:26:38.840666"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/a7a1b5f5-e81a-4d3a-b0f6-73f7d34fb985" for 127.0.0.1 at 2015-11-13 03:26:38 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"a7a1b5f5-e81a-4d3a-b0f6-73f7d34fb985", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"a7a1b5f5-e81a-4d3a-b0f6-73f7d34fb985"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "a7a1b5f5-e81a-4d3a-b0f6-73f7d34fb985"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "40fbde35-55c2-4760-a3f2-1df85d68aab2"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'a7a1b5f5-e81a-4d3a-b0f6-73f7d34fb985') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'a7a1b5f5-e81a-4d3a-b0f6-73f7d34fb985') LIMIT 1 SQL (0.7ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:26:38.854830"], ["id", "a7a1b5f5-e81a-4d3a-b0f6-73f7d34fb985"]]  (0.5ms) COMMIT Completed 200 OK in 17ms (Views: 1.3ms | ActiveRecord: 2.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "a7a1b5f5-e81a-4d3a-b0f6-73f7d34fb985"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:56.074313"], ["updated_at", "2015-11-13 08:26:56.074313"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "58ab4a38-b00a-4782-9f36-e0954f538aea"], ["created_at", "2015-11-13 08:26:56.092826"], ["updated_at", "2015-11-13 08:26:56.092826"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:26:56 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:56.134425"], ["updated_at", "2015-11-13 08:26:56.134425"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b2dea78e-05cc-448e-88f2-db16f4e49dbe"], ["created_at", "2015-11-13 08:26:56.143564"], ["updated_at", "2015-11-13 08:26:56.143564"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/9de65e9e-f6b1-4934-9383-82ed6e26174b" for 127.0.0.1 at 2015-11-13 03:26:56 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"9de65e9e-f6b1-4934-9383-82ed6e26174b"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "9de65e9e-f6b1-4934-9383-82ed6e26174b"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b2dea78e-05cc-448e-88f2-db16f4e49dbe"]] Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:56.181296"], ["updated_at", "2015-11-13 08:26:56.181296"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:26:56 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"1c10a3a1-bcb9-455d-96e2-0cd59cc5aa7c"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1c10a3a1-bcb9-455d-96e2-0cd59cc5aa7c"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "1c10a3a1-bcb9-455d-96e2-0cd59cc5aa7c"], ["created_at", "2015-11-13 08:26:56.197292"], ["updated_at", "2015-11-13 08:26:56.197292"]]  (0.5ms) COMMIT Completed 201 Created in 15ms (Views: 0.8ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:56.215872"], ["updated_at", "2015-11-13 08:26:56.215872"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:26:56 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"84b16bc5-7f45-4910-949a-08d0f49f37d3"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "84b16bc5-7f45-4910-949a-08d0f49f37d3"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:56.240855"], ["updated_at", "2015-11-13 08:26:56.240855"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a23c601f-f3f0-4a53-8a45-13e041d55dfa"], ["created_at", "2015-11-13 08:26:56.248589"], ["updated_at", "2015-11-13 08:26:56.248589"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/c3751c35-4d73-4d6a-8df1-38dc0d1e6c7f" for 127.0.0.1 at 2015-11-13 03:26:56 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"c3751c35-4d73-4d6a-8df1-38dc0d1e6c7f"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "c3751c35-4d73-4d6a-8df1-38dc0d1e6c7f"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "c3751c35-4d73-4d6a-8df1-38dc0d1e6c7f"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:26:56.271973"], ["updated_at", "2015-11-13 08:26:56.271973"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1dc7a38f-005e-45c5-8401-2064656cffe3"], ["created_at", "2015-11-13 08:26:56.277846"], ["updated_at", "2015-11-13 08:26:56.277846"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/af8c6119-d1fe-46c4-859e-7d4356000f8b" for 127.0.0.1 at 2015-11-13 03:26:56 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"af8c6119-d1fe-46c4-859e-7d4356000f8b", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"af8c6119-d1fe-46c4-859e-7d4356000f8b"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "af8c6119-d1fe-46c4-859e-7d4356000f8b"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1dc7a38f-005e-45c5-8401-2064656cffe3"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'af8c6119-d1fe-46c4-859e-7d4356000f8b') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'af8c6119-d1fe-46c4-859e-7d4356000f8b') LIMIT 1 SQL (0.9ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:26:56.290990"], ["id", "af8c6119-d1fe-46c4-859e-7d4356000f8b"]]  (0.6ms) COMMIT Completed 200 OK in 19ms (Views: 1.7ms | ActiveRecord: 3.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "af8c6119-d1fe-46c4-859e-7d4356000f8b"]]  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:29:44.145997"], ["updated_at", "2015-11-13 08:29:44.145997"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ad08fdb5-7f65-4c52-b5bc-7183edeb5777"], ["created_at", "2015-11-13 08:29:44.167302"], ["updated_at", "2015-11-13 08:29:44.167302"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:29:44 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:29:44.211478"], ["updated_at", "2015-11-13 08:29:44.211478"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4bdef722-ce82-4750-9223-53cea055d25b"], ["created_at", "2015-11-13 08:29:44.216620"], ["updated_at", "2015-11-13 08:29:44.216620"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/6d3671a9-e642-4e80-99c9-c0fe6da69663" for 127.0.0.1 at 2015-11-13 03:29:44 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"6d3671a9-e642-4e80-99c9-c0fe6da69663"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "6d3671a9-e642-4e80-99c9-c0fe6da69663"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4bdef722-ce82-4750-9223-53cea055d25b"]] Completed 200 OK in 16ms (Views: 1.4ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:29:44.253768"], ["updated_at", "2015-11-13 08:29:44.253768"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:29:44 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"2f9f19a7-bdb7-42be-99ce-0770e0b77ed1"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2f9f19a7-bdb7-42be-99ce-0770e0b77ed1"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "2f9f19a7-bdb7-42be-99ce-0770e0b77ed1"], ["created_at", "2015-11-13 08:29:44.264688"], ["updated_at", "2015-11-13 08:29:44.264688"]]  (0.6ms) COMMIT Completed 201 Created in 14ms (Views: 1.4ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:29:44.285817"], ["updated_at", "2015-11-13 08:29:44.285817"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:29:44 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"6629fd37-e6a0-4187-bbd8-614ccefaa3bd"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6629fd37-e6a0-4187-bbd8-614ccefaa3bd"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `model_error_messages' for # /Users/adam/dev/strain/lib/strain.rb:8:in `initialize' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `new' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `_save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:125:in `block in save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:124:in `save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:55:in `block in change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:49:in `change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:105:in `replace_fields' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:205:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:142:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.2ms) ROLLBACK Completed 500 Internal Server Error in 10ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:29:44.340756"], ["updated_at", "2015-11-13 08:29:44.340756"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "81b8466d-ca9c-4591-b6a2-b01496042845"], ["created_at", "2015-11-13 08:29:44.346243"], ["updated_at", "2015-11-13 08:29:44.346243"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/ab7e2983-121d-4fd7-bd01-8468af657864" for 127.0.0.1 at 2015-11-13 03:29:44 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"ab7e2983-121d-4fd7-bd01-8468af657864"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ab7e2983-121d-4fd7-bd01-8468af657864"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "ab7e2983-121d-4fd7-bd01-8468af657864"]]  (0.5ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:29:44.365391"], ["updated_at", "2015-11-13 08:29:44.365391"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e071ed05-c756-496c-8855-e0ad14533b2e"], ["created_at", "2015-11-13 08:29:44.372796"], ["updated_at", "2015-11-13 08:29:44.372796"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/735c5d50-d3a4-4a3f-8fa7-587a5840f0b6" for 127.0.0.1 at 2015-11-13 03:29:44 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"735c5d50-d3a4-4a3f-8fa7-587a5840f0b6", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"735c5d50-d3a4-4a3f-8fa7-587a5840f0b6"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "735c5d50-d3a4-4a3f-8fa7-587a5840f0b6"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e071ed05-c756-496c-8855-e0ad14533b2e"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '735c5d50-d3a4-4a3f-8fa7-587a5840f0b6') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '735c5d50-d3a4-4a3f-8fa7-587a5840f0b6') LIMIT 1 SQL (0.8ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:29:44.384230"], ["id", "735c5d50-d3a4-4a3f-8fa7-587a5840f0b6"]]  (0.6ms) COMMIT Completed 200 OK in 16ms (Views: 1.3ms | ActiveRecord: 2.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "735c5d50-d3a4-4a3f-8fa7-587a5840f0b6"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:30:53.260126"], ["updated_at", "2015-11-13 08:30:53.260126"]]  (3.7ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "17c24ebe-1a72-4cf2-9a19-0af9124531ef"], ["created_at", "2015-11-13 08:30:53.284734"], ["updated_at", "2015-11-13 08:30:53.284734"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:30:53 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:30:53.327709"], ["updated_at", "2015-11-13 08:30:53.327709"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "91bf48ba-9f30-4205-88e3-bbaf8baf3158"], ["created_at", "2015-11-13 08:30:53.333344"], ["updated_at", "2015-11-13 08:30:53.333344"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/0623ff3e-aab7-4df1-8495-ac0e5ec23799" for 127.0.0.1 at 2015-11-13 03:30:53 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"0623ff3e-aab7-4df1-8495-ac0e5ec23799"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "0623ff3e-aab7-4df1-8495-ac0e5ec23799"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "91bf48ba-9f30-4205-88e3-bbaf8baf3158"]] Completed 200 OK in 15ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:30:53.373438"], ["updated_at", "2015-11-13 08:30:53.373438"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:30:53 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"4302d884-64d5-43c3-9136-56bca2d614f9"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4302d884-64d5-43c3-9136-56bca2d614f9"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "4302d884-64d5-43c3-9136-56bca2d614f9"], ["created_at", "2015-11-13 08:30:53.389493"], ["updated_at", "2015-11-13 08:30:53.389493"]]  (0.4ms) COMMIT Completed 201 Created in 17ms (Views: 0.8ms | ActiveRecord: 2.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:30:53.407702"], ["updated_at", "2015-11-13 08:30:53.407702"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:30:53 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"9c30584c-91e4-4232-8622-a0555ac9fdfb"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9c30584c-91e4-4232-8622-a0555ac9fdfb"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `model_error_messages' for # /Users/adam/dev/strain/lib/strain.rb:7:in `initialize' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `new' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `_save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:125:in `block in save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:124:in `save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:55:in `block in change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:49:in `change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:105:in `replace_fields' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:205:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:142:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.1ms) ROLLBACK Completed 500 Internal Server Error in 7ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:30:53.454190"], ["updated_at", "2015-11-13 08:30:53.454190"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "17cc5a18-38b7-4e8d-93bd-5d3cedb9f08e"], ["created_at", "2015-11-13 08:30:53.464069"], ["updated_at", "2015-11-13 08:30:53.464069"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/e7cd7add-9209-4b82-a630-6fec56804d7d" for 127.0.0.1 at 2015-11-13 03:30:53 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"e7cd7add-9209-4b82-a630-6fec56804d7d"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e7cd7add-9209-4b82-a630-6fec56804d7d"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "e7cd7add-9209-4b82-a630-6fec56804d7d"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:30:53.486557"], ["updated_at", "2015-11-13 08:30:53.486557"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e4bffd4b-6ca4-48bb-91a4-f825fe2c7d20"], ["created_at", "2015-11-13 08:30:53.493622"], ["updated_at", "2015-11-13 08:30:53.493622"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/4778122d-c9d3-448d-960b-e17857ba6488" for 127.0.0.1 at 2015-11-13 03:30:53 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"4778122d-c9d3-448d-960b-e17857ba6488", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"4778122d-c9d3-448d-960b-e17857ba6488"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "4778122d-c9d3-448d-960b-e17857ba6488"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e4bffd4b-6ca4-48bb-91a4-f825fe2c7d20"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '4778122d-c9d3-448d-960b-e17857ba6488') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '4778122d-c9d3-448d-960b-e17857ba6488') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:30:53.510732"], ["id", "4778122d-c9d3-448d-960b-e17857ba6488"]]  (0.5ms) COMMIT Completed 200 OK in 18ms (Views: 1.1ms | ActiveRecord: 2.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "4778122d-c9d3-448d-960b-e17857ba6488"]]  (0.3ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:31:14.636657"], ["updated_at", "2015-11-13 08:31:14.636657"]]  (3.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "15b3b411-48d0-42d7-b5bd-2f48a4d1cbce"], ["created_at", "2015-11-13 08:31:14.660950"], ["updated_at", "2015-11-13 08:31:14.660950"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:31:14 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 2.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:31:14.708511"], ["updated_at", "2015-11-13 08:31:14.708511"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ac23e8ec-1071-4430-8a2c-43fb70eef8f2"], ["created_at", "2015-11-13 08:31:14.717550"], ["updated_at", "2015-11-13 08:31:14.717550"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/dbac656e-04c4-4037-9428-01f3eb6ec657" for 127.0.0.1 at 2015-11-13 03:31:14 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"dbac656e-04c4-4037-9428-01f3eb6ec657"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "dbac656e-04c4-4037-9428-01f3eb6ec657"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ac23e8ec-1071-4430-8a2c-43fb70eef8f2"]] Completed 200 OK in 18ms (Views: 1.5ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:31:14.760484"], ["updated_at", "2015-11-13 08:31:14.760484"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:31:14 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"4faf1d19-96a8-4336-881e-469023314b4c"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4faf1d19-96a8-4336-881e-469023314b4c"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "4faf1d19-96a8-4336-881e-469023314b4c"], ["created_at", "2015-11-13 08:31:14.773274"], ["updated_at", "2015-11-13 08:31:14.773274"]]  (0.6ms) COMMIT Completed 201 Created in 15ms (Views: 1.5ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:31:14.797749"], ["updated_at", "2015-11-13 08:31:14.797749"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:31:14 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"93043fe6-3946-47b4-981c-fd949ffd2c6b"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "93043fe6-3946-47b4-981c-fd949ffd2c6b"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `model_error_messages' for # /Users/adam/dev/strain/lib/strain.rb:8:in `initialize' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `new' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `_save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:125:in `block in save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:124:in `save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:55:in `block in change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:49:in `change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:105:in `replace_fields' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:205:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:142:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.5ms) ROLLBACK Completed 500 Internal Server Error in 53479ms (Views: 0.8ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK SQL (3.5ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:32:08.319221"], ["updated_at", "2015-11-13 08:32:08.319221"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "76ca3f04-5bfe-4021-a21b-ee8ac5e0ec4c"], ["created_at", "2015-11-13 08:32:08.326183"], ["updated_at", "2015-11-13 08:32:08.326183"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/27afa430-e0e9-44fa-8a18-6196c74eedd6" for 127.0.0.1 at 2015-11-13 03:32:08 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"27afa430-e0e9-44fa-8a18-6196c74eedd6"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "27afa430-e0e9-44fa-8a18-6196c74eedd6"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "27afa430-e0e9-44fa-8a18-6196c74eedd6"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:32:08.348263"], ["updated_at", "2015-11-13 08:32:08.348263"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5697d8b3-0ba2-4693-b499-dc95f5264f65"], ["created_at", "2015-11-13 08:32:08.357627"], ["updated_at", "2015-11-13 08:32:08.357627"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/67dd088a-3dce-42fa-9011-b108af623049" for 127.0.0.1 at 2015-11-13 03:32:08 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"67dd088a-3dce-42fa-9011-b108af623049", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"67dd088a-3dce-42fa-9011-b108af623049"}  (0.3ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "67dd088a-3dce-42fa-9011-b108af623049"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5697d8b3-0ba2-4693-b499-dc95f5264f65"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '67dd088a-3dce-42fa-9011-b108af623049') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '67dd088a-3dce-42fa-9011-b108af623049') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:32:08.372711"], ["id", "67dd088a-3dce-42fa-9011-b108af623049"]]  (0.3ms) COMMIT Completed 200 OK in 16ms (Views: 1.1ms | ActiveRecord: 2.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "67dd088a-3dce-42fa-9011-b108af623049"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:03.059157"], ["updated_at", "2015-11-13 08:34:03.059157"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5aa5586e-f563-44df-9132-7db571b466f3"], ["created_at", "2015-11-13 08:34:03.077168"], ["updated_at", "2015-11-13 08:34:03.077168"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:34:03 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:03.120791"], ["updated_at", "2015-11-13 08:34:03.120791"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9f80b67f-934d-4485-8310-11bb4e62c9aa"], ["created_at", "2015-11-13 08:34:03.129821"], ["updated_at", "2015-11-13 08:34:03.129821"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/7d4bfdb6-67fd-4efc-9bbb-ed4dbdb111cc" for 127.0.0.1 at 2015-11-13 03:34:03 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"7d4bfdb6-67fd-4efc-9bbb-ed4dbdb111cc"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "7d4bfdb6-67fd-4efc-9bbb-ed4dbdb111cc"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9f80b67f-934d-4485-8310-11bb4e62c9aa"]] Completed 200 OK in 14ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:03.169924"], ["updated_at", "2015-11-13 08:34:03.169924"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:34:03 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"58b14de9-3859-4056-a42e-dd118db27aeb"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "58b14de9-3859-4056-a42e-dd118db27aeb"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "58b14de9-3859-4056-a42e-dd118db27aeb"], ["created_at", "2015-11-13 08:34:03.187534"], ["updated_at", "2015-11-13 08:34:03.187534"]]  (0.4ms) COMMIT Completed 201 Created in 16ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" SQL (0.7ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:03.211254"], ["updated_at", "2015-11-13 08:34:03.211254"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:34:03 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"36b4fd3e-e525-4971-8560-67bb7c5885dd"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "36b4fd3e-e525-4971-8560-67bb7c5885dd"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `model_error_messages' for # /Users/adam/dev/strain/lib/strain.rb:7:in `initialize' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `new' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `_save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:125:in `block in save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:124:in `save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:55:in `block in change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:49:in `change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:105:in `replace_fields' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:205:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:142:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.1ms) ROLLBACK Completed 500 Internal Server Error in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:03.259270"], ["updated_at", "2015-11-13 08:34:03.259270"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cac86773-543a-425a-85d3-532875911e8a"], ["created_at", "2015-11-13 08:34:03.269261"], ["updated_at", "2015-11-13 08:34:03.269261"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/10553041-26b6-42b2-88d6-3c54fb2cf6d7" for 127.0.0.1 at 2015-11-13 03:34:03 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"10553041-26b6-42b2-88d6-3c54fb2cf6d7"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "10553041-26b6-42b2-88d6-3c54fb2cf6d7"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "10553041-26b6-42b2-88d6-3c54fb2cf6d7"]]  (0.6ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:03.291175"], ["updated_at", "2015-11-13 08:34:03.291175"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a25dce01-8804-4cf5-bcf0-231e47d4a766"], ["created_at", "2015-11-13 08:34:03.297204"], ["updated_at", "2015-11-13 08:34:03.297204"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/articles/7aeb12d4-7562-4d74-b682-9365db98130b" for 127.0.0.1 at 2015-11-13 03:34:03 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"7aeb12d4-7562-4d74-b682-9365db98130b", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"7aeb12d4-7562-4d74-b682-9365db98130b"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "7aeb12d4-7562-4d74-b682-9365db98130b"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a25dce01-8804-4cf5-bcf0-231e47d4a766"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '7aeb12d4-7562-4d74-b682-9365db98130b') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '7aeb12d4-7562-4d74-b682-9365db98130b') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:34:03.316192"], ["id", "7aeb12d4-7562-4d74-b682-9365db98130b"]]  (0.8ms) COMMIT Completed 200 OK in 22ms (Views: 1.7ms | ActiveRecord: 3.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "7aeb12d4-7562-4d74-b682-9365db98130b"]]  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:08.803481"], ["updated_at", "2015-11-13 08:34:08.803481"]]  (2.0ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cd4a10c8-7686-4a84-8147-3a34fc9d09b3"], ["created_at", "2015-11-13 08:34:08.823681"], ["updated_at", "2015-11-13 08:34:08.823681"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:34:08 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.3ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 2.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:08.869912"], ["updated_at", "2015-11-13 08:34:08.869912"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "da5afa15-6f59-43e9-94a1-9e6abaf6ae19"], ["created_at", "2015-11-13 08:34:08.879010"], ["updated_at", "2015-11-13 08:34:08.879010"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/6e954722-ccf1-46c0-b1f5-0bff751fa7a2" for 127.0.0.1 at 2015-11-13 03:34:08 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"6e954722-ccf1-46c0-b1f5-0bff751fa7a2"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "6e954722-ccf1-46c0-b1f5-0bff751fa7a2"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "da5afa15-6f59-43e9-94a1-9e6abaf6ae19"]] Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.6ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (1.0ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:08.920036"], ["updated_at", "2015-11-13 08:34:08.920036"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:34:08 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"0436e5c9-2b2d-4396-846a-a3d83ddce3f1"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "0436e5c9-2b2d-4396-846a-a3d83ddce3f1"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "0436e5c9-2b2d-4396-846a-a3d83ddce3f1"], ["created_at", "2015-11-13 08:34:08.936825"], ["updated_at", "2015-11-13 08:34:08.936825"]]  (0.5ms) COMMIT Completed 201 Created in 15ms (Views: 0.8ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:08.954055"], ["updated_at", "2015-11-13 08:34:08.954055"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:34:08 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"1cb06912-1870-4a68-81de-7af09142f2e5"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1cb06912-1870-4a68-81de-7af09142f2e5"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `model_error_messages' for # /Users/adam/dev/strain/lib/strain.rb:7:in `initialize' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `new' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `_save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:125:in `block in save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:124:in `save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:55:in `block in change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:49:in `change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:105:in `replace_fields' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:205:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:142:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.1ms) ROLLBACK Completed 500 Internal Server Error in 7ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:08.997879"], ["updated_at", "2015-11-13 08:34:08.997879"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b41981c6-e318-46a6-9412-a5f005b66b94"], ["created_at", "2015-11-13 08:34:09.004037"], ["updated_at", "2015-11-13 08:34:09.004037"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/articles/e23cf0c5-7f3e-4f7b-b071-82b042f0fd9d" for 127.0.0.1 at 2015-11-13 03:34:09 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"e23cf0c5-7f3e-4f7b-b071-82b042f0fd9d"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e23cf0c5-7f3e-4f7b-b071-82b042f0fd9d"]] SQL (0.4ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "e23cf0c5-7f3e-4f7b-b071-82b042f0fd9d"]]  (0.3ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:09.033146"], ["updated_at", "2015-11-13 08:34:09.033146"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "28b8793e-de66-4dc7-9deb-bf7ba86eb2d2"], ["created_at", "2015-11-13 08:34:09.038402"], ["updated_at", "2015-11-13 08:34:09.038402"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/072d187e-16ed-41db-b2e8-ea3b45cb788c" for 127.0.0.1 at 2015-11-13 03:34:09 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"072d187e-16ed-41db-b2e8-ea3b45cb788c", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"072d187e-16ed-41db-b2e8-ea3b45cb788c"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "072d187e-16ed-41db-b2e8-ea3b45cb788c"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "28b8793e-de66-4dc7-9deb-bf7ba86eb2d2"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '072d187e-16ed-41db-b2e8-ea3b45cb788c') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '072d187e-16ed-41db-b2e8-ea3b45cb788c') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:34:09.052711"], ["id", "072d187e-16ed-41db-b2e8-ea3b45cb788c"]]  (0.4ms) COMMIT Completed 200 OK in 16ms (Views: 1.1ms | ActiveRecord: 2.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "072d187e-16ed-41db-b2e8-ea3b45cb788c"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:29.305867"], ["updated_at", "2015-11-13 08:34:29.305867"]]  (3.2ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ca8d2afd-1fa4-4835-88cb-3b5f51e9b56a"], ["created_at", "2015-11-13 08:34:29.324273"], ["updated_at", "2015-11-13 08:34:29.324273"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:34:29 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:29.363965"], ["updated_at", "2015-11-13 08:34:29.363965"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e1b07645-a8e2-44fc-ad53-adb55503f46b"], ["created_at", "2015-11-13 08:34:29.369111"], ["updated_at", "2015-11-13 08:34:29.369111"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/14e71df9-9c06-496b-b2e2-1a8bedd4d62e" for 127.0.0.1 at 2015-11-13 03:34:29 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"14e71df9-9c06-496b-b2e2-1a8bedd4d62e"} Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "14e71df9-9c06-496b-b2e2-1a8bedd4d62e"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e1b07645-a8e2-44fc-ad53-adb55503f46b"]] Completed 200 OK in 18ms (Views: 1.3ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:29.408174"], ["updated_at", "2015-11-13 08:34:29.408174"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:34:29 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"eeb99c07-4d65-45e8-b362-b84650846d60"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "eeb99c07-4d65-45e8-b362-b84650846d60"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "eeb99c07-4d65-45e8-b362-b84650846d60"], ["created_at", "2015-11-13 08:34:29.419194"], ["updated_at", "2015-11-13 08:34:29.419194"]]  (0.6ms) COMMIT Completed 201 Created in 12ms (Views: 0.7ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:29.436859"], ["updated_at", "2015-11-13 08:34:29.436859"]]  (0.7ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:34:29 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"1dbb8d8c-a8d3-43c0-8dee-4bb1bbcd8f52"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1dbb8d8c-a8d3-43c0-8dee-4bb1bbcd8f52"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `model_error_messages' for # /Users/adam/dev/strain/lib/strain.rb:7:in `initialize' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `new' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `_save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:125:in `block in save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:124:in `save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:55:in `block in change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:49:in `change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:105:in `replace_fields' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:205:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:142:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.2ms) ROLLBACK Completed 500 Internal Server Error in 11ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:29.474854"], ["updated_at", "2015-11-13 08:34:29.474854"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "90abaf56-8c80-4c34-8aaf-3fe83866a934"], ["created_at", "2015-11-13 08:34:29.480501"], ["updated_at", "2015-11-13 08:34:29.480501"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/0ee345c1-c5a8-4d3e-9c66-31c2d5ef940d" for 127.0.0.1 at 2015-11-13 03:34:29 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"0ee345c1-c5a8-4d3e-9c66-31c2d5ef940d"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "0ee345c1-c5a8-4d3e-9c66-31c2d5ef940d"]] SQL (0.4ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "0ee345c1-c5a8-4d3e-9c66-31c2d5ef940d"]]  (0.4ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:29.502969"], ["updated_at", "2015-11-13 08:34:29.502969"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "24f9fc22-8065-4713-b315-8a39c2a5618c"], ["created_at", "2015-11-13 08:34:29.508553"], ["updated_at", "2015-11-13 08:34:29.508553"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/b85360a1-22f3-4fe3-826a-45945eaf2e46" for 127.0.0.1 at 2015-11-13 03:34:29 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"b85360a1-22f3-4fe3-826a-45945eaf2e46", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"b85360a1-22f3-4fe3-826a-45945eaf2e46"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "b85360a1-22f3-4fe3-826a-45945eaf2e46"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "24f9fc22-8065-4713-b315-8a39c2a5618c"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'b85360a1-22f3-4fe3-826a-45945eaf2e46') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'b85360a1-22f3-4fe3-826a-45945eaf2e46') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:34:29.522492"], ["id", "b85360a1-22f3-4fe3-826a-45945eaf2e46"]]  (0.4ms) COMMIT Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 2.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "b85360a1-22f3-4fe3-826a-45945eaf2e46"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:43.869338"], ["updated_at", "2015-11-13 08:34:43.869338"]]  (3.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "13e1a748-2c5a-4650-ab0c-0ccb449f7e85"], ["created_at", "2015-11-13 08:34:43.891406"], ["updated_at", "2015-11-13 08:34:43.891406"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:34:43 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:43.934002"], ["updated_at", "2015-11-13 08:34:43.934002"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "74c4b6fe-2002-4b7b-b43c-a44af0b2e613"], ["created_at", "2015-11-13 08:34:43.943277"], ["updated_at", "2015-11-13 08:34:43.943277"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/6c7d3f66-7a18-4781-aca3-2f11773084a4" for 127.0.0.1 at 2015-11-13 03:34:43 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"6c7d3f66-7a18-4781-aca3-2f11773084a4"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "6c7d3f66-7a18-4781-aca3-2f11773084a4"]] Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "74c4b6fe-2002-4b7b-b43c-a44af0b2e613"]] Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:43.982310"], ["updated_at", "2015-11-13 08:34:43.982310"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:34:43 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"52f25855-4926-4211-8ab0-fa8b80c925d9"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "52f25855-4926-4211-8ab0-fa8b80c925d9"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "52f25855-4926-4211-8ab0-fa8b80c925d9"], ["created_at", "2015-11-13 08:34:43.999221"], ["updated_at", "2015-11-13 08:34:43.999221"]]  (0.3ms) COMMIT Completed 201 Created in 15ms (Views: 0.8ms | ActiveRecord: 2.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:34:44.016866"], ["updated_at", "2015-11-13 08:34:44.016866"]]  (0.7ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:34:44 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"7a0e1c55-88b9-46a0-9544-dc496aa99446"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "7a0e1c55-88b9-46a0-9544-dc496aa99446"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Internal Server Error: undefined method `model_error_messages' for # /Users/adam/dev/strain/lib/strain.rb:8:in `initialize' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `new' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:144:in `_save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:125:in `block in save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_save_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:124:in `save' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:55:in `block in change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:49:in `change' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/resource.rb:105:in `replace_fields' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operation.rb:205:in `apply' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:23:in `block in process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:90:in `with_default_handling' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:21:in `process_operation' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:53:in `block (5 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_create_resource_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:52:in `block (4 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operation_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:50:in `block (3 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:45:in `block (2 levels) in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:7:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/active_record_operations_processor.rb:6:in `transaction' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:41:in `block in process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_operations_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/operations_processor.rb:40:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:167:in `process_request_operations' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/jsonapi-resources-0.6.1/lib/jsonapi/acts_as_resource_controller.rb:26:in `create' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:297:in `process' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:38:in `post' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/integration.rb:346:in `block (2 levels) in ' /Users/adam/dev/strain/spec/requests/strain/jsonapi/articles_spec.rb:142:in `block (5 levels) in ' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:357:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:521:in `block in run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `each' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:520:in `run_owned_hooks_for' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb:473:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:472:in `block in run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:186:in `block in isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `instance_exec' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb:182:in `isolate_for_context_hook' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:471:in `run_before_context_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:520:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `block in run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb:522:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (3 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `map' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:115:in `block (2 levels) in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1627:in `with_suite_hooks' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:114:in `block in run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:77:in `report' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:89:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke' /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `' bin/rspec:16:in `load' bin/rspec:16:in `
'  (0.5ms) ROLLBACK Completed 500 Internal Server Error in 103551ms (Views: 0.6ms | ActiveRecord: 1.6ms)  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (3.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:36:27.605171"], ["updated_at", "2015-11-13 08:36:27.605171"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "bab21e50-9397-4b40-8c65-d07f300cbed6"], ["created_at", "2015-11-13 08:36:27.611146"], ["updated_at", "2015-11-13 08:36:27.611146"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/3e4944b9-d7b6-4a21-b471-34fbd6a7b0d8" for 127.0.0.1 at 2015-11-13 03:36:27 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"3e4944b9-d7b6-4a21-b471-34fbd6a7b0d8"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3e4944b9-d7b6-4a21-b471-34fbd6a7b0d8"]] SQL (0.4ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "3e4944b9-d7b6-4a21-b471-34fbd6a7b0d8"]]  (0.5ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:36:27.632221"], ["updated_at", "2015-11-13 08:36:27.632221"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2c2601e6-1df4-40d6-8f71-fab8e2e88baf"], ["created_at", "2015-11-13 08:36:27.637750"], ["updated_at", "2015-11-13 08:36:27.637750"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/1d507604-d40a-4b13-a9fc-6f486f55eb23" for 127.0.0.1 at 2015-11-13 03:36:27 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"1d507604-d40a-4b13-a9fc-6f486f55eb23", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"1d507604-d40a-4b13-a9fc-6f486f55eb23"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "1d507604-d40a-4b13-a9fc-6f486f55eb23"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2c2601e6-1df4-40d6-8f71-fab8e2e88baf"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '1d507604-d40a-4b13-a9fc-6f486f55eb23') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '1d507604-d40a-4b13-a9fc-6f486f55eb23') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:36:27.649946"], ["id", "1d507604-d40a-4b13-a9fc-6f486f55eb23"]]  (0.6ms) COMMIT Completed 200 OK in 14ms (Views: 0.7ms | ActiveRecord: 2.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "1d507604-d40a-4b13-a9fc-6f486f55eb23"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:37:39.141727"], ["updated_at", "2015-11-13 08:37:39.141727"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "32968cf7-c529-4583-b285-bdc7a35cda6a"], ["created_at", "2015-11-13 08:37:39.164931"], ["updated_at", "2015-11-13 08:37:39.164931"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:37:39 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:37:39.210204"], ["updated_at", "2015-11-13 08:37:39.210204"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "08cc596a-e2bf-4f25-b94c-16f56011ca7a"], ["created_at", "2015-11-13 08:37:39.215965"], ["updated_at", "2015-11-13 08:37:39.215965"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/e7236caf-34ce-4c16-bd83-cdb4bf7b7ea0" for 127.0.0.1 at 2015-11-13 03:37:39 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"e7236caf-34ce-4c16-bd83-cdb4bf7b7ea0"} Strain::Article Load (0.9ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e7236caf-34ce-4c16-bd83-cdb4bf7b7ea0"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "08cc596a-e2bf-4f25-b94c-16f56011ca7a"]] Completed 200 OK in 16ms (Views: 0.9ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:37:39.254939"], ["updated_at", "2015-11-13 08:37:39.254939"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:37:39 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"bc6e12db-e9d1-488e-a5d1-2feddcdd38f3"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "bc6e12db-e9d1-488e-a5d1-2feddcdd38f3"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "bc6e12db-e9d1-488e-a5d1-2feddcdd38f3"], ["created_at", "2015-11-13 08:37:39.271616"], ["updated_at", "2015-11-13 08:37:39.271616"]]  (0.3ms) COMMIT Completed 201 Created in 15ms (Views: 1.0ms | ActiveRecord: 2.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:37:39.289506"], ["updated_at", "2015-11-13 08:37:39.289506"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:37:39 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"f3a5940a-70bb-4b61-a39f-b551ab7b5224"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f3a5940a-70bb-4b61-a39f-b551ab7b5224"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.5ms) ROLLBACK Completed 422 Unprocessable Entity in 63762ms (Views: 0.9ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (4.0ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:38:43.079014"], ["updated_at", "2015-11-13 08:38:43.079014"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8a5bb0ad-66f9-445d-b280-7474c715006b"], ["created_at", "2015-11-13 08:38:43.090985"], ["updated_at", "2015-11-13 08:38:43.090985"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/eeeffe7e-3ddf-41b7-a8c1-72b82e37f339" for 127.0.0.1 at 2015-11-13 03:38:43 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"eeeffe7e-3ddf-41b7-a8c1-72b82e37f339"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "eeeffe7e-3ddf-41b7-a8c1-72b82e37f339"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "eeeffe7e-3ddf-41b7-a8c1-72b82e37f339"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.3ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:38:43.115912"], ["updated_at", "2015-11-13 08:38:43.115912"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6d097044-3560-4d03-b229-43da90748278"], ["created_at", "2015-11-13 08:38:43.121764"], ["updated_at", "2015-11-13 08:38:43.121764"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/c5aad6ac-40a0-45c2-a350-d1661c7e08ec" for 127.0.0.1 at 2015-11-13 03:38:43 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"c5aad6ac-40a0-45c2-a350-d1661c7e08ec", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"c5aad6ac-40a0-45c2-a350-d1661c7e08ec"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "c5aad6ac-40a0-45c2-a350-d1661c7e08ec"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6d097044-3560-4d03-b229-43da90748278"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'c5aad6ac-40a0-45c2-a350-d1661c7e08ec') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'c5aad6ac-40a0-45c2-a350-d1661c7e08ec') LIMIT 1 SQL (0.5ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-13 08:38:43.134639"], ["id", "c5aad6ac-40a0-45c2-a350-d1661c7e08ec"]]  (0.3ms) COMMIT Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 2.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "c5aad6ac-40a0-45c2-a350-d1661c7e08ec"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:40:01.827869"], ["updated_at", "2015-11-13 08:40:01.827869"]]  (3.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4f43b0dc-4766-420f-b44f-f299fd632cd5"], ["created_at", "2015-11-13 08:40:01.850627"], ["updated_at", "2015-11-13 08:40:01.850627"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-13 03:40:01 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:40:01.893884"], ["updated_at", "2015-11-13 08:40:01.893884"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "15988528-16f1-483f-bb97-fb719a10790f"], ["created_at", "2015-11-13 08:40:01.899863"], ["updated_at", "2015-11-13 08:40:01.899863"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/46c9aab9-c6ac-48ac-b6d7-9f8fc30179d5" for 127.0.0.1 at 2015-11-13 03:40:01 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"46c9aab9-c6ac-48ac-b6d7-9f8fc30179d5"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "46c9aab9-c6ac-48ac-b6d7-9f8fc30179d5"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "15988528-16f1-483f-bb97-fb719a10790f"]] Completed 200 OK in 17ms (Views: 1.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:40:01.942016"], ["updated_at", "2015-11-13 08:40:01.942016"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:40:01 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"b479b6a3-723c-4fe8-8ab7-d3b28ca29682"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b479b6a3-723c-4fe8-8ab7-d3b28ca29682"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "b479b6a3-723c-4fe8-8ab7-d3b28ca29682"], ["created_at", "2015-11-13 08:40:01.953776"], ["updated_at", "2015-11-13 08:40:01.953776"]]  (0.6ms) COMMIT Completed 201 Created in 15ms (Views: 1.4ms | ActiveRecord: 2.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-13 08:40:01.976511"], ["updated_at", "2015-11-13 08:40:01.976511"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-13 03:40:01 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"bbe12cbe-8b10-4ac7-99ca-913824fe84b2"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "bbe12cbe-8b10-4ac7-99ca-913824fe84b2"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (20.2ms) ROLLBACK Completed 422 Unprocessable Entity in 155131561ms (Views: 4.2ms | ActiveRecord: 21.0ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (2.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (1.5ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:45:33.629644"], ["updated_at", "2015-11-15 03:45:33.629644"]]  (0.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3737dafa-29e9-4515-9dcb-d6e1afd91791"], ["created_at", "2015-11-15 03:45:33.650805"], ["updated_at", "2015-11-15 03:45:33.650805"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/de315ea6-ea09-4a44-91c3-eed6a8c87b5c" for 127.0.0.1 at 2015-11-14 22:45:33 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"de315ea6-ea09-4a44-91c3-eed6a8c87b5c"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "de315ea6-ea09-4a44-91c3-eed6a8c87b5c"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "de315ea6-ea09-4a44-91c3-eed6a8c87b5c"]]  (0.4ms) COMMIT Completed 204 No Content in 9ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:45:33.695926"], ["updated_at", "2015-11-15 03:45:33.695926"]]  (0.7ms) COMMIT  (0.4ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "81f4a213-c56a-48ac-b5ce-02e81baf7ad5"], ["created_at", "2015-11-15 03:45:33.705094"], ["updated_at", "2015-11-15 03:45:33.705094"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/08529197-932d-4683-b58d-ee0e42782734" for 127.0.0.1 at 2015-11-14 22:45:33 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"08529197-932d-4683-b58d-ee0e42782734", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"08529197-932d-4683-b58d-ee0e42782734"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "08529197-932d-4683-b58d-ee0e42782734"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "81f4a213-c56a-48ac-b5ce-02e81baf7ad5"]] Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '08529197-932d-4683-b58d-ee0e42782734') LIMIT 1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '08529197-932d-4683-b58d-ee0e42782734') LIMIT 1 SQL (0.5ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-15 03:45:33.731077"], ["id", "08529197-932d-4683-b58d-ee0e42782734"]]  (0.4ms) COMMIT Completed 200 OK in 29ms (Views: 1.6ms | ActiveRecord: 3.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "08529197-932d-4683-b58d-ee0e42782734"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.8ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (11.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:45:48.236193"], ["updated_at", "2015-11-15 03:45:48.236193"]]  (0.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fb75021c-0536-41be-9cb2-42785affb89f"], ["created_at", "2015-11-15 03:45:48.265047"], ["updated_at", "2015-11-15 03:45:48.265047"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-14 22:45:48 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:45:48.324534"], ["updated_at", "2015-11-15 03:45:48.324534"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e8782c32-34d0-4d25-a18d-1e1641e0f1e5"], ["created_at", "2015-11-15 03:45:48.331970"], ["updated_at", "2015-11-15 03:45:48.331970"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/dcf3fccc-ad3f-44d8-88b7-6ebdfed67da5" for 127.0.0.1 at 2015-11-14 22:45:48 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"dcf3fccc-ad3f-44d8-88b7-6ebdfed67da5"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "dcf3fccc-ad3f-44d8-88b7-6ebdfed67da5"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e8782c32-34d0-4d25-a18d-1e1641e0f1e5"]] Completed 200 OK in 18ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:45:48.376573"], ["updated_at", "2015-11-15 03:45:48.376573"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-14 22:45:48 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"d258aeb3-f51c-4e2e-84de-fb4ae04918be"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "d258aeb3-f51c-4e2e-84de-fb4ae04918be"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "d258aeb3-f51c-4e2e-84de-fb4ae04918be"], ["created_at", "2015-11-15 03:45:48.394061"], ["updated_at", "2015-11-15 03:45:48.394061"]]  (0.3ms) COMMIT Completed 201 Created in 16ms (Views: 1.0ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:45:48.414463"], ["updated_at", "2015-11-15 03:45:48.414463"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-14 22:45:48 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"c1768db4-be9f-4c62-ae3c-b60f7bfd1e9b"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c1768db4-be9f-4c62-ae3c-b60f7bfd1e9b"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:45:48.442244"], ["updated_at", "2015-11-15 03:45:48.442244"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "71c48103-b62e-4dda-9a35-1c2be34b6271"], ["created_at", "2015-11-15 03:45:48.452523"], ["updated_at", "2015-11-15 03:45:48.452523"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/45f688d1-115d-4590-a888-a09c23590666" for 127.0.0.1 at 2015-11-14 22:45:48 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"45f688d1-115d-4590-a888-a09c23590666"}  (0.1ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "45f688d1-115d-4590-a888-a09c23590666"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "45f688d1-115d-4590-a888-a09c23590666"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:45:48.483101"], ["updated_at", "2015-11-15 03:45:48.483101"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "07903843-3e65-422d-abb5-33b49c7ddedb"], ["created_at", "2015-11-15 03:45:48.491838"], ["updated_at", "2015-11-15 03:45:48.491838"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/528314c2-80e6-4017-ab14-f75f9ced7516" for 127.0.0.1 at 2015-11-14 22:45:48 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"528314c2-80e6-4017-ab14-f75f9ced7516", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"528314c2-80e6-4017-ab14-f75f9ced7516"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "528314c2-80e6-4017-ab14-f75f9ced7516"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "07903843-3e65-422d-abb5-33b49c7ddedb"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '528314c2-80e6-4017-ab14-f75f9ced7516') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '528314c2-80e6-4017-ab14-f75f9ced7516') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-15 03:45:48.505910"], ["id", "528314c2-80e6-4017-ab14-f75f9ced7516"]]  (0.5ms) COMMIT Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "528314c2-80e6-4017-ab14-f75f9ced7516"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:46:20.752830"], ["updated_at", "2015-11-15 03:46:20.752830"]]  (3.7ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "21a49bd4-ef4e-4959-913a-a4c014d0319c"], ["created_at", "2015-11-15 03:46:20.773363"], ["updated_at", "2015-11-15 03:46:20.773363"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-14 22:46:20 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.5ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:46:20.831458"], ["updated_at", "2015-11-15 03:46:20.831458"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7c03f35e-03ef-421f-9f46-8bcf002e6d40"], ["created_at", "2015-11-15 03:46:20.837603"], ["updated_at", "2015-11-15 03:46:20.837603"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/323cbbe2-0d3e-4d06-aa44-2bb6ede65ef8" for 127.0.0.1 at 2015-11-14 22:46:20 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"323cbbe2-0d3e-4d06-aa44-2bb6ede65ef8"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "323cbbe2-0d3e-4d06-aa44-2bb6ede65ef8"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "7c03f35e-03ef-421f-9f46-8bcf002e6d40"]] Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:46:20.875160"], ["updated_at", "2015-11-15 03:46:20.875160"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-14 22:46:20 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"e99585af-49d4-4d10-80b8-f8667897c6f1"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e99585af-49d4-4d10-80b8-f8667897c6f1"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "e99585af-49d4-4d10-80b8-f8667897c6f1"], ["created_at", "2015-11-15 03:46:20.888539"], ["updated_at", "2015-11-15 03:46:20.888539"]]  (0.4ms) COMMIT Completed 201 Created in 15ms (Views: 1.1ms | ActiveRecord: 1.9ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:46:20.910352"], ["updated_at", "2015-11-15 03:46:20.910352"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-14 22:46:20 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"054506f4-931b-471e-af67-68c8eca4c5a6"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "054506f4-931b-471e-af67-68c8eca4c5a6"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:46:20.934226"], ["updated_at", "2015-11-15 03:46:20.934226"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a3488a17-4731-4dfd-ba20-bc075a01f747"], ["created_at", "2015-11-15 03:46:20.940648"], ["updated_at", "2015-11-15 03:46:20.940648"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/3b20b882-806d-465a-a5d4-37f1605f09f3" for 127.0.0.1 at 2015-11-14 22:46:20 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"3b20b882-806d-465a-a5d4-37f1605f09f3"}  (0.2ms) BEGIN Strain::Article Load (0.6ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3b20b882-806d-465a-a5d4-37f1605f09f3"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "3b20b882-806d-465a-a5d4-37f1605f09f3"]]  (0.4ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:46:20.967170"], ["updated_at", "2015-11-15 03:46:20.967170"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "214b206a-6abc-456d-af7b-d98fbf0f16df"], ["created_at", "2015-11-15 03:46:20.972853"], ["updated_at", "2015-11-15 03:46:20.972853"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/691917aa-0514-4d7b-ad38-8f7d760380f0" for 127.0.0.1 at 2015-11-14 22:46:20 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"691917aa-0514-4d7b-ad38-8f7d760380f0", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"691917aa-0514-4d7b-ad38-8f7d760380f0"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "691917aa-0514-4d7b-ad38-8f7d760380f0"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "214b206a-6abc-456d-af7b-d98fbf0f16df"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '691917aa-0514-4d7b-ad38-8f7d760380f0') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '691917aa-0514-4d7b-ad38-8f7d760380f0') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-15 03:46:20.987593"], ["id", "691917aa-0514-4d7b-ad38-8f7d760380f0"]]  (0.5ms) COMMIT Completed 200 OK in 16ms (Views: 1.8ms | ActiveRecord: 2.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "691917aa-0514-4d7b-ad38-8f7d760380f0"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:47:01.431237"], ["updated_at", "2015-11-15 03:47:01.431237"]]  (4.0ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0a2ceb23-1cb3-46e5-bdbe-bfbae881cdd1"], ["created_at", "2015-11-15 03:47:01.450311"], ["updated_at", "2015-11-15 03:47:01.450311"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-14 22:47:01 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.3ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 1.3ms)  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:47:01.506259"], ["updated_at", "2015-11-15 03:47:01.506259"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "74557d9d-adc2-4cd3-a1ac-b90c73d026bb"], ["created_at", "2015-11-15 03:47:01.514060"], ["updated_at", "2015-11-15 03:47:01.514060"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/c96b360f-11c2-43aa-85d5-16f19bf6d6b4" for 127.0.0.1 at 2015-11-14 22:47:01 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"c96b360f-11c2-43aa-85d5-16f19bf6d6b4"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "c96b360f-11c2-43aa-85d5-16f19bf6d6b4"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "74557d9d-adc2-4cd3-a1ac-b90c73d026bb"]] Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:47:01.553904"], ["updated_at", "2015-11-15 03:47:01.553904"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-14 22:47:01 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"e394e269-6ed3-4bf8-a5e3-206d483d0a99"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e394e269-6ed3-4bf8-a5e3-206d483d0a99"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "e394e269-6ed3-4bf8-a5e3-206d483d0a99"], ["created_at", "2015-11-15 03:47:01.568727"], ["updated_at", "2015-11-15 03:47:01.568727"]]  (0.3ms) COMMIT Completed 201 Created in 15ms (Views: 1.4ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (1.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 03:47:01.589607"], ["updated_at", "2015-11-15 03:47:01.589607"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-14 22:47:01 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"5963000d-c4b0-452e-934e-040a89067e2c"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5963000d-c4b0-452e-934e-040a89067e2c"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) ROLLBACK SQL (3.9ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 05:24:02.119274"], ["updated_at", "2015-11-15 05:24:02.119274"]]  (0.7ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "35ad5f41-40c5-499b-82c7-589c70d6f24e"], ["created_at", "2015-11-15 05:24:02.126928"], ["updated_at", "2015-11-15 05:24:02.126928"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/60677d14-0ac3-42aa-800a-58cc6b642b38" for 127.0.0.1 at 2015-11-15 00:24:02 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"60677d14-0ac3-42aa-800a-58cc6b642b38"}  (0.1ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "60677d14-0ac3-42aa-800a-58cc6b642b38"]] SQL (0.4ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "60677d14-0ac3-42aa-800a-58cc6b642b38"]]  (0.4ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 05:24:02.152381"], ["updated_at", "2015-11-15 05:24:02.152381"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cab8ee6a-901b-4625-a466-f7770a514757"], ["created_at", "2015-11-15 05:24:02.158962"], ["updated_at", "2015-11-15 05:24:02.158962"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/849e1a15-1728-4190-bed1-e570533a290b" for 127.0.0.1 at 2015-11-15 00:24:02 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"849e1a15-1728-4190-bed1-e570533a290b", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"849e1a15-1728-4190-bed1-e570533a290b"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "849e1a15-1728-4190-bed1-e570533a290b"]] Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "cab8ee6a-901b-4625-a466-f7770a514757"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '849e1a15-1728-4190-bed1-e570533a290b') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '849e1a15-1728-4190-bed1-e570533a290b') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-15 05:24:02.173408"], ["id", "849e1a15-1728-4190-bed1-e570533a290b"]]  (0.3ms) COMMIT Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "849e1a15-1728-4190-bed1-e570533a290b"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 05:24:07.102801"], ["updated_at", "2015-11-15 05:24:07.102801"]]  (0.4ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0448f54c-e828-435e-bca2-5453eabc17a6"], ["created_at", "2015-11-15 05:24:07.119765"], ["updated_at", "2015-11-15 05:24:07.119765"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-15 00:24:07 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 05:24:07.169291"], ["updated_at", "2015-11-15 05:24:07.169291"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "eaf4898b-b1a5-4c13-aca9-98186e971b0b"], ["created_at", "2015-11-15 05:24:07.179297"], ["updated_at", "2015-11-15 05:24:07.179297"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/678cea30-a79b-4aac-ac84-bf41fb79d3db" for 127.0.0.1 at 2015-11-15 00:24:07 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"678cea30-a79b-4aac-ac84-bf41fb79d3db"} Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "678cea30-a79b-4aac-ac84-bf41fb79d3db"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "eaf4898b-b1a5-4c13-aca9-98186e971b0b"]] Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 05:24:07.219827"], ["updated_at", "2015-11-15 05:24:07.219827"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 00:24:07 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"8ca07fd9-29ad-4fe3-be16-33264510c99e"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "8ca07fd9-29ad-4fe3-be16-33264510c99e"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "8ca07fd9-29ad-4fe3-be16-33264510c99e"], ["created_at", "2015-11-15 05:24:07.238911"], ["updated_at", "2015-11-15 05:24:07.238911"]]  (0.3ms) COMMIT Completed 201 Created in 16ms (Views: 0.8ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 05:24:07.257041"], ["updated_at", "2015-11-15 05:24:07.257041"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 00:24:07 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"21a48e78-6d3b-4047-a0a0-2689935c4db4"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "21a48e78-6d3b-4047-a0a0-2689935c4db4"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) ROLLBACK SQL (3.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 05:24:09.919793"], ["updated_at", "2015-11-15 05:24:09.919793"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a284b2ba-13d7-4033-a7bb-0bdbaaa0f464"], ["created_at", "2015-11-15 05:24:09.927778"], ["updated_at", "2015-11-15 05:24:09.927778"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/e7e5c1a4-decf-4310-9101-a3b16206db69" for 127.0.0.1 at 2015-11-15 00:24:09 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"e7e5c1a4-decf-4310-9101-a3b16206db69"}  (0.1ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e7e5c1a4-decf-4310-9101-a3b16206db69"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "e7e5c1a4-decf-4310-9101-a3b16206db69"]]  (0.3ms) COMMIT Completed 204 No Content in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 05:24:09.956007"], ["updated_at", "2015-11-15 05:24:09.956007"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e13919a7-dd83-4729-af1b-f0a36058dec3"], ["created_at", "2015-11-15 05:24:09.964755"], ["updated_at", "2015-11-15 05:24:09.964755"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/58846f60-5c0c-4937-b5be-591405b93364" for 127.0.0.1 at 2015-11-15 00:24:09 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"58846f60-5c0c-4937-b5be-591405b93364", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"58846f60-5c0c-4937-b5be-591405b93364"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "58846f60-5c0c-4937-b5be-591405b93364"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e13919a7-dd83-4729-af1b-f0a36058dec3"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '58846f60-5c0c-4937-b5be-591405b93364') LIMIT 1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '58846f60-5c0c-4937-b5be-591405b93364') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-15 05:24:09.982776"], ["id", "58846f60-5c0c-4937-b5be-591405b93364"]]  (0.3ms) COMMIT Completed 200 OK in 18ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "58846f60-5c0c-4937-b5be-591405b93364"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (21.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 07:06:30.387251"], ["updated_at", "2015-11-15 07:06:30.387251"]]  (1.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (1.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "55017ff1-91e7-45dc-95ac-4166f0318f84"], ["created_at", "2015-11-15 07:06:30.425769"], ["updated_at", "2015-11-15 07:06:30.425769"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-15 02:06:30 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 07:06:30.472772"], ["updated_at", "2015-11-15 07:06:30.472772"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7b18a92e-2598-44b6-aab2-ccfd8678c848"], ["created_at", "2015-11-15 07:06:30.482094"], ["updated_at", "2015-11-15 07:06:30.482094"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/c202651a-a2e4-4517-bbcf-5923fc1cd0bb" for 127.0.0.1 at 2015-11-15 02:06:30 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"c202651a-a2e4-4517-bbcf-5923fc1cd0bb"} Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "c202651a-a2e4-4517-bbcf-5923fc1cd0bb"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "7b18a92e-2598-44b6-aab2-ccfd8678c848"]] Completed 200 OK in 15ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 07:06:30.525455"], ["updated_at", "2015-11-15 07:06:30.525455"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 02:06:30 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"ecdb5666-041b-4944-8dc4-184c4738871a"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ecdb5666-041b-4944-8dc4-184c4738871a"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "ecdb5666-041b-4944-8dc4-184c4738871a"], ["created_at", "2015-11-15 07:06:30.537169"], ["updated_at", "2015-11-15 07:06:30.537169"]]  (0.6ms) COMMIT Completed 201 Created in 12ms (Views: 0.8ms | ActiveRecord: 2.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.7ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 07:06:30.556708"], ["updated_at", "2015-11-15 07:06:30.556708"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 02:06:30 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"2e5f1ade-f776-408f-9e64-bb0b7adb5f13"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2e5f1ade-f776-408f-9e64-bb0b7adb5f13"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 07:06:30.584665"], ["updated_at", "2015-11-15 07:06:30.584665"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b39fb2fd-c7ff-430a-b5fa-adac969e9e74"], ["created_at", "2015-11-15 07:06:30.591347"], ["updated_at", "2015-11-15 07:06:30.591347"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/3fde41de-eed0-489a-8caa-958300aa2c67" for 127.0.0.1 at 2015-11-15 02:06:30 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"3fde41de-eed0-489a-8caa-958300aa2c67"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3fde41de-eed0-489a-8caa-958300aa2c67"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "3fde41de-eed0-489a-8caa-958300aa2c67"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-15 07:06:30.614282"], ["updated_at", "2015-11-15 07:06:30.614282"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "97c4708a-8a7f-476b-8b6e-bb8107f02684"], ["created_at", "2015-11-15 07:06:30.623223"], ["updated_at", "2015-11-15 07:06:30.623223"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/afd99285-e558-4fb7-a3de-d5ac68e0ef55" for 127.0.0.1 at 2015-11-15 02:06:30 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"afd99285-e558-4fb7-a3de-d5ac68e0ef55", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"afd99285-e558-4fb7-a3de-d5ac68e0ef55"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "afd99285-e558-4fb7-a3de-d5ac68e0ef55"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "97c4708a-8a7f-476b-8b6e-bb8107f02684"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'afd99285-e558-4fb7-a3de-d5ac68e0ef55') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'afd99285-e558-4fb7-a3de-d5ac68e0ef55') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-15 07:06:30.640246"], ["id", "afd99285-e558-4fb7-a3de-d5ac68e0ef55"]]  (0.4ms) COMMIT Completed 200 OK in 18ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "afd99285-e558-4fb7-a3de-d5ac68e0ef55"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (27.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:14.466920"], ["updated_at", "2015-11-16 03:42:14.466920"]]  (0.9ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8178992d-3e01-4786-8e38-7e8fd509180e"], ["created_at", "2015-11-16 03:42:14.511067"], ["updated_at", "2015-11-16 03:42:14.511067"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-15 22:42:14 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:14.558516"], ["updated_at", "2015-11-16 03:42:14.558516"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "89d2d92e-e0be-4b99-b788-56be6fe80b48"], ["created_at", "2015-11-16 03:42:14.563846"], ["updated_at", "2015-11-16 03:42:14.563846"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/b39efc9d-ecc3-4014-89f4-dd25ff2adc46" for 127.0.0.1 at 2015-11-15 22:42:14 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"b39efc9d-ecc3-4014-89f4-dd25ff2adc46"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "b39efc9d-ecc3-4014-89f4-dd25ff2adc46"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "89d2d92e-e0be-4b99-b788-56be6fe80b48"]] Completed 200 OK in 15ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:14.600963"], ["updated_at", "2015-11-16 03:42:14.600963"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 22:42:14 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"7b74bdf7-4fe4-4141-a806-e327c752efd0"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "7b74bdf7-4fe4-4141-a806-e327c752efd0"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "7b74bdf7-4fe4-4141-a806-e327c752efd0"], ["created_at", "2015-11-16 03:42:14.613153"], ["updated_at", "2015-11-16 03:42:14.613153"]]  (0.6ms) COMMIT Completed 201 Created in 12ms (Views: 0.8ms | ActiveRecord: 2.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:14.629805"], ["updated_at", "2015-11-16 03:42:14.629805"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 22:42:14 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"4a862f48-0d8e-4f00-a282-c32ebe401901"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4a862f48-0d8e-4f00-a282-c32ebe401901"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:14.652750"], ["updated_at", "2015-11-16 03:42:14.652750"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "87c677ea-fb7d-41f3-94d8-2199ca8fc734"], ["created_at", "2015-11-16 03:42:14.658464"], ["updated_at", "2015-11-16 03:42:14.658464"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/bb7b851e-1162-4d16-85c8-c7f7242dec09" for 127.0.0.1 at 2015-11-15 22:42:14 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"bb7b851e-1162-4d16-85c8-c7f7242dec09"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "bb7b851e-1162-4d16-85c8-c7f7242dec09"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "bb7b851e-1162-4d16-85c8-c7f7242dec09"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:14.679753"], ["updated_at", "2015-11-16 03:42:14.679753"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1e2b4f75-6527-4be6-8b30-a174be1fc8f9"], ["created_at", "2015-11-16 03:42:14.685353"], ["updated_at", "2015-11-16 03:42:14.685353"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/0831ae34-9f90-4983-a9c7-d579639f5214" for 127.0.0.1 at 2015-11-15 22:42:14 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"0831ae34-9f90-4983-a9c7-d579639f5214", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"0831ae34-9f90-4983-a9c7-d579639f5214"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "0831ae34-9f90-4983-a9c7-d579639f5214"]] Strain::Variant Load (0.2ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1e2b4f75-6527-4be6-8b30-a174be1fc8f9"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '0831ae34-9f90-4983-a9c7-d579639f5214') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '0831ae34-9f90-4983-a9c7-d579639f5214') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 03:42:14.697722"], ["id", "0831ae34-9f90-4983-a9c7-d579639f5214"]]  (0.6ms) COMMIT Completed 200 OK in 16ms (Views: 1.3ms | ActiveRecord: 2.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "0831ae34-9f90-4983-a9c7-d579639f5214"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:57.315241"], ["updated_at", "2015-11-16 03:42:57.315241"]]  (3.2ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6dc71426-3fc5-4431-a4e4-5fa40b17be91"], ["created_at", "2015-11-16 03:42:57.334311"], ["updated_at", "2015-11-16 03:42:57.334311"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-15 22:42:57 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:57.380713"], ["updated_at", "2015-11-16 03:42:57.380713"]]  (0.7ms) COMMIT  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c23e1be6-961b-4e18-b304-862f3d8a86b6"], ["created_at", "2015-11-16 03:42:57.391886"], ["updated_at", "2015-11-16 03:42:57.391886"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/5252a23a-1c6b-4c98-8c23-97d9d613c945" for 127.0.0.1 at 2015-11-15 22:42:57 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"5252a23a-1c6b-4c98-8c23-97d9d613c945"} Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5252a23a-1c6b-4c98-8c23-97d9d613c945"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c23e1be6-961b-4e18-b304-862f3d8a86b6"]] Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.7ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:57.435724"], ["updated_at", "2015-11-16 03:42:57.435724"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 22:42:57 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"149021e3-5245-43e9-9adf-86cf808eda57"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "149021e3-5245-43e9-9adf-86cf808eda57"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "149021e3-5245-43e9-9adf-86cf808eda57"], ["created_at", "2015-11-16 03:42:57.449546"], ["updated_at", "2015-11-16 03:42:57.449546"]]  (0.2ms) COMMIT Completed 201 Created in 14ms (Views: 0.9ms | ActiveRecord: 2.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (2.9ms) DELETE FROM "strain_variants" SQL (0.8ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:57.475560"], ["updated_at", "2015-11-16 03:42:57.475560"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 22:42:57 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"f1a6b18c-0e98-4f02-b4a0-4296eef043ee"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f1a6b18c-0e98-4f02-b4a0-4296eef043ee"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:57.504547"], ["updated_at", "2015-11-16 03:42:57.504547"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "23cf60c8-cddc-4f26-be23-4a55b51e2c1d"], ["created_at", "2015-11-16 03:42:57.511442"], ["updated_at", "2015-11-16 03:42:57.511442"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/be9b316f-601f-461c-98fa-d9b6bb9cede8" for 127.0.0.1 at 2015-11-15 22:42:57 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"be9b316f-601f-461c-98fa-d9b6bb9cede8"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "be9b316f-601f-461c-98fa-d9b6bb9cede8"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "be9b316f-601f-461c-98fa-d9b6bb9cede8"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:42:57.534318"], ["updated_at", "2015-11-16 03:42:57.534318"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fffbf112-81a0-4454-b860-c29380c307b3"], ["created_at", "2015-11-16 03:42:57.540817"], ["updated_at", "2015-11-16 03:42:57.540817"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/aa0b5746-f39c-4f68-b1dc-fd48fc00d44c" for 127.0.0.1 at 2015-11-15 22:42:57 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"aa0b5746-f39c-4f68-b1dc-fd48fc00d44c", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"aa0b5746-f39c-4f68-b1dc-fd48fc00d44c"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "aa0b5746-f39c-4f68-b1dc-fd48fc00d44c"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fffbf112-81a0-4454-b860-c29380c307b3"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'aa0b5746-f39c-4f68-b1dc-fd48fc00d44c') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'aa0b5746-f39c-4f68-b1dc-fd48fc00d44c') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 03:42:57.554373"], ["id", "aa0b5746-f39c-4f68-b1dc-fd48fc00d44c"]]  (0.4ms) COMMIT Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "aa0b5746-f39c-4f68-b1dc-fd48fc00d44c"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:43:36.516948"], ["updated_at", "2015-11-16 03:43:36.516948"]]  (3.7ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f424f0bc-d2b5-4e37-b3af-b51fbf500269"], ["created_at", "2015-11-16 03:43:36.536851"], ["updated_at", "2015-11-16 03:43:36.536851"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-15 22:43:36 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:43:36.580481"], ["updated_at", "2015-11-16 03:43:36.580481"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ac0b7250-3680-4a43-8aa7-cca68e10dc37"], ["created_at", "2015-11-16 03:43:36.587092"], ["updated_at", "2015-11-16 03:43:36.587092"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/a3f2b5e2-8e46-44ff-8e4b-c14ef3a1bd9b" for 127.0.0.1 at 2015-11-15 22:43:36 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"a3f2b5e2-8e46-44ff-8e4b-c14ef3a1bd9b"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "a3f2b5e2-8e46-44ff-8e4b-c14ef3a1bd9b"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ac0b7250-3680-4a43-8aa7-cca68e10dc37"]] Completed 200 OK in 15ms (Views: 1.1ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:43:36.626891"], ["updated_at", "2015-11-16 03:43:36.626891"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 22:43:36 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"15c03d7f-0db2-4c01-bb57-715dea29324c"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "15c03d7f-0db2-4c01-bb57-715dea29324c"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "15c03d7f-0db2-4c01-bb57-715dea29324c"], ["created_at", "2015-11-16 03:43:36.640764"], ["updated_at", "2015-11-16 03:43:36.640764"]]  (0.3ms) COMMIT Completed 201 Created in 14ms (Views: 1.0ms | ActiveRecord: 2.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:43:36.660235"], ["updated_at", "2015-11-16 03:43:36.660235"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 22:43:36 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"ef610a06-706c-4b71-88a6-39a8c99e087a"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ef610a06-706c-4b71-88a6-39a8c99e087a"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:43:36.688723"], ["updated_at", "2015-11-16 03:43:36.688723"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "19acf56b-46e5-4966-9030-fa954a1b4326"], ["created_at", "2015-11-16 03:43:36.696213"], ["updated_at", "2015-11-16 03:43:36.696213"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/72bae308-58a3-45ff-b345-c6437ce137f5" for 127.0.0.1 at 2015-11-15 22:43:36 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"72bae308-58a3-45ff-b345-c6437ce137f5"}  (0.1ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "72bae308-58a3-45ff-b345-c6437ce137f5"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "72bae308-58a3-45ff-b345-c6437ce137f5"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:43:36.720904"], ["updated_at", "2015-11-16 03:43:36.720904"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f108128c-1027-40c4-929a-e4f11d366b62"], ["created_at", "2015-11-16 03:43:36.727243"], ["updated_at", "2015-11-16 03:43:36.727243"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/fc6ac471-6e21-4b97-8f81-d0403c235a54" for 127.0.0.1 at 2015-11-15 22:43:36 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"fc6ac471-6e21-4b97-8f81-d0403c235a54", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"fc6ac471-6e21-4b97-8f81-d0403c235a54"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "fc6ac471-6e21-4b97-8f81-d0403c235a54"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f108128c-1027-40c4-929a-e4f11d366b62"]] Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'fc6ac471-6e21-4b97-8f81-d0403c235a54') LIMIT 1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'fc6ac471-6e21-4b97-8f81-d0403c235a54') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 03:43:36.742526"], ["id", "fc6ac471-6e21-4b97-8f81-d0403c235a54"]]  (0.3ms) COMMIT Completed 200 OK in 17ms (Views: 1.0ms | ActiveRecord: 2.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "fc6ac471-6e21-4b97-8f81-d0403c235a54"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:48:40.034410"], ["updated_at", "2015-11-16 03:48:40.034410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:48:40.044858"], ["updated_at", "2015-11-16 03:48:40.044858"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 03:48:40.056447"], ["updated_at", "2015-11-16 03:48:40.056447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (26.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:23:28.739247"], ["updated_at", "2015-11-16 04:23:28.739247"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:23:28.790208"], ["updated_at", "2015-11-16 04:23:28.790208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:23:28.810392"], ["updated_at", "2015-11-16 04:23:28.810392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:23:28.831611"], ["updated_at", "2015-11-16 04:23:28.831611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:23:28.846314"], ["updated_at", "2015-11-16 04:23:28.846314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:23:28.860961"], ["updated_at", "2015-11-16 04:23:28.860961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "efc323f0-5d18-4797-9fa7-7a475a655ea3"], ["created_at", "2015-11-16 04:23:28.866650"], ["updated_at", "2015-11-16 04:23:28.866650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "efc323f0-5d18-4797-9fa7-7a475a655ea3"], ["created_at", "2015-11-16 04:23:28.872387"], ["updated_at", "2015-11-16 04:23:28.872387"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:23:28.883505"], ["updated_at", "2015-11-16 04:23:28.883505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0edd706c-910a-4738-8fe8-1b4350463a67"], ["created_at", "2015-11-16 04:23:28.888753"], ["updated_at", "2015-11-16 04:23:28.888753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:23:28.901706"], ["updated_at", "2015-11-16 04:23:28.901706"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:23:28.916134"], ["updated_at", "2015-11-16 04:23:28.916134"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 04:23:28.931263"], ["updated_at", "2015-11-16 04:23:28.931263"]] SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cb665d45-fd3b-4c5f-ad42-30b157c0f40e"], ["created_at", "2015-11-16 04:23:28.932973"], ["updated_at", "2015-11-16 04:23:28.932973"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:09.844716"], ["updated_at", "2015-11-16 04:26:09.844716"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:09.870400"], ["updated_at", "2015-11-16 04:26:09.870400"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:09.890263"], ["updated_at", "2015-11-16 04:26:09.890263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:09.910148"], ["updated_at", "2015-11-16 04:26:09.910148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:09.924017"], ["updated_at", "2015-11-16 04:26:09.924017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:09.937179"], ["updated_at", "2015-11-16 04:26:09.937179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4686b4c5-a566-4527-90ab-5592cd2aa8b0"], ["created_at", "2015-11-16 04:26:09.943593"], ["updated_at", "2015-11-16 04:26:09.943593"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4686b4c5-a566-4527-90ab-5592cd2aa8b0"], ["created_at", "2015-11-16 04:26:09.949183"], ["updated_at", "2015-11-16 04:26:09.949183"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:09.959666"], ["updated_at", "2015-11-16 04:26:09.959666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "14572101-7ce3-47c9-9139-9605e1d91f47"], ["created_at", "2015-11-16 04:26:09.965141"], ["updated_at", "2015-11-16 04:26:09.965141"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:09.984565"], ["updated_at", "2015-11-16 04:26:09.984565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:09.999261"], ["updated_at", "2015-11-16 04:26:09.999261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 04:26:10.018557"], ["updated_at", "2015-11-16 04:26:10.018557"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f6fc4165-2fae-4829-8598-94e6164b32dc"], ["created_at", "2015-11-16 04:26:10.020313"], ["updated_at", "2015-11-16 04:26:10.020313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.091264"], ["updated_at", "2015-11-16 04:26:10.091264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.094162"], ["updated_at", "2015-11-16 04:26:10.094162"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.106273"], ["updated_at", "2015-11-16 04:26:10.106273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (1.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.137441"], ["updated_at", "2015-11-16 04:26:10.137441"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fac04004-aa5b-4833-8669-9c4cdd83bc7d"], ["created_at", "2015-11-16 04:26:10.145368"], ["updated_at", "2015-11-16 04:26:10.145368"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.187847"], ["updated_at", "2015-11-16 04:26:10.187847"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3e54d7dd-41d3-46c9-91fe-5573a749207f"], ["created_at", "2015-11-16 04:26:10.193193"], ["updated_at", "2015-11-16 04:26:10.193193"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/3be1067a-800a-430a-bd23-cad3cd32d3c0" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"3be1067a-800a-430a-bd23-cad3cd32d3c0"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3be1067a-800a-430a-bd23-cad3cd32d3c0"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "3e54d7dd-41d3-46c9-91fe-5573a749207f"]] Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.254937"], ["updated_at", "2015-11-16 04:26:10.254937"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"6d03358b-3629-4934-886b-a0c2a134b05f"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6d03358b-3629-4934-886b-a0c2a134b05f"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "6d03358b-3629-4934-886b-a0c2a134b05f"], ["created_at", "2015-11-16 04:26:10.267747"], ["updated_at", "2015-11-16 04:26:10.267747"]]  (0.5ms) COMMIT Completed 201 Created in 13ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.285257"], ["updated_at", "2015-11-16 04:26:10.285257"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"07d7b4e8-19d7-41f3-9c7a-e0da2cadf632"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "07d7b4e8-19d7-41f3-9c7a-e0da2cadf632"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.313050"], ["updated_at", "2015-11-16 04:26:10.313050"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "203b8149-c23b-42f0-9a94-c6e9e99d7583"], ["created_at", "2015-11-16 04:26:10.319177"], ["updated_at", "2015-11-16 04:26:10.319177"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/79968b16-fd36-4bc2-89dd-3e33c519fbdc" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"79968b16-fd36-4bc2-89dd-3e33c519fbdc"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "79968b16-fd36-4bc2-89dd-3e33c519fbdc"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "79968b16-fd36-4bc2-89dd-3e33c519fbdc"]]  (0.4ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.339016"], ["updated_at", "2015-11-16 04:26:10.339016"]]  (0.3ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "040abd4d-2a7f-4abd-8e7d-5003a3ebaa38"], ["created_at", "2015-11-16 04:26:10.345451"], ["updated_at", "2015-11-16 04:26:10.345451"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/5550a796-1483-4584-b421-4321a9b7c4f1" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"5550a796-1483-4584-b421-4321a9b7c4f1", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"5550a796-1483-4584-b421-4321a9b7c4f1"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5550a796-1483-4584-b421-4321a9b7c4f1"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "040abd4d-2a7f-4abd-8e7d-5003a3ebaa38"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5550a796-1483-4584-b421-4321a9b7c4f1') LIMIT 1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5550a796-1483-4584-b421-4321a9b7c4f1') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 04:26:10.357814"], ["id", "5550a796-1483-4584-b421-4321a9b7c4f1"]]  (0.5ms) COMMIT Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "5550a796-1483-4584-b421-4321a9b7c4f1"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.377426"], ["updated_at", "2015-11-16 04:26:10.377426"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.399971"], ["updated_at", "2015-11-16 04:26:10.399971"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/426f70d2-b8f7-48a9-b387-5f390f5afd09" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"426f70d2-b8f7-48a9-b387-5f390f5afd09"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "426f70d2-b8f7-48a9-b387-5f390f5afd09"]] Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-16 04:26:10.431785"], ["updated_at", "2015-11-16 04:26:10.431785"]]  (0.5ms) COMMIT Completed 201 Created in 16ms (Views: 0.3ms | ActiveRecord: 1.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.447129"], ["updated_at", "2015-11-16 04:26:10.447129"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/284c2342-68ba-46b2-98fb-49a3dcfd1058" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"284c2342-68ba-46b2-98fb-49a3dcfd1058"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "284c2342-68ba-46b2-98fb-49a3dcfd1058"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "284c2342-68ba-46b2-98fb-49a3dcfd1058"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:26:10.466552"], ["updated_at", "2015-11-16 04:26:10.466552"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/59a429aa-861e-4b82-8988-85812001c4db" for 127.0.0.1 at 2015-11-15 23:26:10 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"59a429aa-861e-4b82-8988-85812001c4db", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"59a429aa-861e-4b82-8988-85812001c4db"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "59a429aa-861e-4b82-8988-85812001c4db"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '59a429aa-861e-4b82-8988-85812001c4db') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '59a429aa-861e-4b82-8988-85812001c4db') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-16 04:26:10.484934"], ["id", "59a429aa-861e-4b82-8988-85812001c4db"]]  (0.5ms) COMMIT Completed 200 OK in 18ms (Views: 0.4ms | ActiveRecord: 2.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "59a429aa-861e-4b82-8988-85812001c4db"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (20.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:11.383991"], ["updated_at", "2015-11-16 04:33:11.383991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:11.428126"], ["updated_at", "2015-11-16 04:33:11.428126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:11.450071"], ["updated_at", "2015-11-16 04:33:11.450071"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:11.469413"], ["updated_at", "2015-11-16 04:33:11.469413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:11.485693"], ["updated_at", "2015-11-16 04:33:11.485693"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:11.500861"], ["updated_at", "2015-11-16 04:33:11.500861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "54ea71a3-11bf-4eb5-8733-f4ede225e8ba"], ["created_at", "2015-11-16 04:33:11.508366"], ["updated_at", "2015-11-16 04:33:11.508366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "54ea71a3-11bf-4eb5-8733-f4ede225e8ba"], ["created_at", "2015-11-16 04:33:11.517715"], ["updated_at", "2015-11-16 04:33:11.517715"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:11.532191"], ["updated_at", "2015-11-16 04:33:11.532191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "69e3637e-c666-4d0c-9164-75093b5c7caf"], ["created_at", "2015-11-16 04:33:11.537841"], ["updated_at", "2015-11-16 04:33:11.537841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:11.553675"], ["updated_at", "2015-11-16 04:33:11.553675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:11.569961"], ["updated_at", "2015-11-16 04:33:11.569961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 04:33:11.592734"], ["updated_at", "2015-11-16 04:33:11.592734"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "08efebb7-4560-4dcc-853f-89101c0f2b55"], ["created_at", "2015-11-16 04:33:11.594781"], ["updated_at", "2015-11-16 04:33:11.594781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:22.849298"], ["updated_at", "2015-11-16 04:33:22.849298"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:22.877917"], ["updated_at", "2015-11-16 04:33:22.877917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:22.899224"], ["updated_at", "2015-11-16 04:33:22.899224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:22.917239"], ["updated_at", "2015-11-16 04:33:22.917239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:22.932006"], ["updated_at", "2015-11-16 04:33:22.932006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:22.946663"], ["updated_at", "2015-11-16 04:33:22.946663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "56a3f667-853d-4005-84ad-1c980bc09b73"], ["created_at", "2015-11-16 04:33:22.953177"], ["updated_at", "2015-11-16 04:33:22.953177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "56a3f667-853d-4005-84ad-1c980bc09b73"], ["created_at", "2015-11-16 04:33:22.958757"], ["updated_at", "2015-11-16 04:33:22.958757"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:22.970485"], ["updated_at", "2015-11-16 04:33:22.970485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b1350330-bf8c-4f72-9004-c64b92688cf3"], ["created_at", "2015-11-16 04:33:22.976194"], ["updated_at", "2015-11-16 04:33:22.976194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:22.992922"], ["updated_at", "2015-11-16 04:33:22.992922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:33:23.009627"], ["updated_at", "2015-11-16 04:33:23.009627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 04:33:23.028980"], ["updated_at", "2015-11-16 04:33:23.028980"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d10808d0-4dc3-4b38-9afe-6a9101b3560b"], ["created_at", "2015-11-16 04:33:23.031041"], ["updated_at", "2015-11-16 04:33:23.031041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:34:33.066768"], ["updated_at", "2015-11-16 04:34:33.066768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:34:33.094879"], ["updated_at", "2015-11-16 04:34:33.094879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:34:33.116090"], ["updated_at", "2015-11-16 04:34:33.116090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:34:33.134171"], ["updated_at", "2015-11-16 04:34:33.134171"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:34:33.157470"], ["updated_at", "2015-11-16 04:34:33.157470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:34:33.176681"], ["updated_at", "2015-11-16 04:34:33.176681"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "972d8448-faf2-44bd-a53d-fd213234109d"], ["created_at", "2015-11-16 04:34:33.183269"], ["updated_at", "2015-11-16 04:34:33.183269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "972d8448-faf2-44bd-a53d-fd213234109d"], ["created_at", "2015-11-16 04:34:33.188576"], ["updated_at", "2015-11-16 04:34:33.188576"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:34:33.200228"], ["updated_at", "2015-11-16 04:34:33.200228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4d0ddb55-aea8-426f-9eab-fc39c1ccb485"], ["created_at", "2015-11-16 04:34:33.207565"], ["updated_at", "2015-11-16 04:34:33.207565"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:34:33.228749"], ["updated_at", "2015-11-16 04:34:33.228749"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:34:33.250785"], ["updated_at", "2015-11-16 04:34:33.250785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 04:34:33.273209"], ["updated_at", "2015-11-16 04:34:33.273209"]] SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "36f4af6e-ba57-421d-9093-ec79214c0526"], ["created_at", "2015-11-16 04:34:33.274966"], ["updated_at", "2015-11-16 04:34:33.274966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:35:23.391223"], ["updated_at", "2015-11-16 04:35:23.391223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:35:23.424796"], ["updated_at", "2015-11-16 04:35:23.424796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:35:23.450620"], ["updated_at", "2015-11-16 04:35:23.450620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:35:23.474267"], ["updated_at", "2015-11-16 04:35:23.474267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:35:23.493443"], ["updated_at", "2015-11-16 04:35:23.493443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:35:23.513212"], ["updated_at", "2015-11-16 04:35:23.513212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b4e1424a-8bde-41fe-9aab-6b52bb8d4e59"], ["created_at", "2015-11-16 04:35:23.518595"], ["updated_at", "2015-11-16 04:35:23.518595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b4e1424a-8bde-41fe-9aab-6b52bb8d4e59"], ["created_at", "2015-11-16 04:35:23.523517"], ["updated_at", "2015-11-16 04:35:23.523517"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:35:23.534851"], ["updated_at", "2015-11-16 04:35:23.534851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e3725a2f-f834-4200-877c-754e2334c564"], ["created_at", "2015-11-16 04:35:23.540251"], ["updated_at", "2015-11-16 04:35:23.540251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:35:23.556550"], ["updated_at", "2015-11-16 04:35:23.556550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 04:35:23.576759"], ["updated_at", "2015-11-16 04:35:23.576759"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 04:35:23.599966"], ["updated_at", "2015-11-16 04:35:23.599966"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9a635490-1b5e-4411-808b-f5808ce4c1f9"], ["created_at", "2015-11-16 04:35:23.602018"], ["updated_at", "2015-11-16 04:35:23.602018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.496978"], ["updated_at", "2015-11-16 18:21:46.496978"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.2ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.522278"], ["updated_at", "2015-11-16 18:21:46.522278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.548114"], ["updated_at", "2015-11-16 18:21:46.548114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.567805"], ["updated_at", "2015-11-16 18:21:46.567805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.582743"], ["updated_at", "2015-11-16 18:21:46.582743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.596856"], ["updated_at", "2015-11-16 18:21:46.596856"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "41e23c19-afe3-4309-bfc8-1f51edf09967"], ["created_at", "2015-11-16 18:21:46.602651"], ["updated_at", "2015-11-16 18:21:46.602651"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "41e23c19-afe3-4309-bfc8-1f51edf09967"], ["created_at", "2015-11-16 18:21:46.612056"], ["updated_at", "2015-11-16 18:21:46.612056"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.626593"], ["updated_at", "2015-11-16 18:21:46.626593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2f623c35-24a6-40fb-8a88-74a150a39fb7"], ["created_at", "2015-11-16 18:21:46.632069"], ["updated_at", "2015-11-16 18:21:46.632069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.648787"], ["updated_at", "2015-11-16 18:21:46.648787"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.667180"], ["updated_at", "2015-11-16 18:21:46.667180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 18:21:46.682888"], ["updated_at", "2015-11-16 18:21:46.682888"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ca513c27-44fc-4113-9733-417d311ca15b"], ["created_at", "2015-11-16 18:21:46.684636"], ["updated_at", "2015-11-16 18:21:46.684636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.734954"], ["updated_at", "2015-11-16 18:21:46.734954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.738214"], ["updated_at", "2015-11-16 18:21:46.738214"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.749583"], ["updated_at", "2015-11-16 18:21:46.749583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.779380"], ["updated_at", "2015-11-16 18:21:46.779380"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "bb856ff5-19f6-4862-8fe2-bb2ff265f53e"], ["created_at", "2015-11-16 18:21:46.784819"], ["updated_at", "2015-11-16 18:21:46.784819"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 13:21:46 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.827855"], ["updated_at", "2015-11-16 18:21:46.827855"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "18afd5ac-fbfd-4c02-b20b-8e159e2f7940"], ["created_at", "2015-11-16 18:21:46.834008"], ["updated_at", "2015-11-16 18:21:46.834008"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/c1fa0e79-deb0-400a-9022-34858c591099" for 127.0.0.1 at 2015-11-16 13:21:46 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"c1fa0e79-deb0-400a-9022-34858c591099"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "c1fa0e79-deb0-400a-9022-34858c591099"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "18afd5ac-fbfd-4c02-b20b-8e159e2f7940"]] Completed 200 OK in 16ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.900857"], ["updated_at", "2015-11-16 18:21:46.900857"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 13:21:46 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"b87ebe82-8727-40cf-971f-30750696606d"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b87ebe82-8727-40cf-971f-30750696606d"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "b87ebe82-8727-40cf-971f-30750696606d"], ["created_at", "2015-11-16 18:21:46.911723"], ["updated_at", "2015-11-16 18:21:46.911723"]]  (0.4ms) COMMIT Completed 201 Created in 12ms (Views: 0.4ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.937428"], ["updated_at", "2015-11-16 18:21:46.937428"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 13:21:46 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"226e40f8-ca45-482d-a533-4f0e7a913548"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "226e40f8-ca45-482d-a533-4f0e7a913548"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.961009"], ["updated_at", "2015-11-16 18:21:46.961009"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c86be527-e2ab-4cfc-b24b-a63cb4c30da9"], ["created_at", "2015-11-16 18:21:46.966595"], ["updated_at", "2015-11-16 18:21:46.966595"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/e5c20866-4f2d-4547-b0a0-b4ee1ed9c99b" for 127.0.0.1 at 2015-11-16 13:21:46 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"e5c20866-4f2d-4547-b0a0-b4ee1ed9c99b"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "e5c20866-4f2d-4547-b0a0-b4ee1ed9c99b"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "e5c20866-4f2d-4547-b0a0-b4ee1ed9c99b"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:46.988098"], ["updated_at", "2015-11-16 18:21:46.988098"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "702361ee-1151-4885-a9fe-ed4f0c1fabe3"], ["created_at", "2015-11-16 18:21:46.994035"], ["updated_at", "2015-11-16 18:21:46.994035"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/8364824c-3513-4629-80c2-fca2cacd78cb" for 127.0.0.1 at 2015-11-16 13:21:46 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"8364824c-3513-4629-80c2-fca2cacd78cb", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"8364824c-3513-4629-80c2-fca2cacd78cb"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "8364824c-3513-4629-80c2-fca2cacd78cb"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "702361ee-1151-4885-a9fe-ed4f0c1fabe3"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '8364824c-3513-4629-80c2-fca2cacd78cb') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 18:21:47.004775"], ["id", "8364824c-3513-4629-80c2-fca2cacd78cb"]]  (0.6ms) COMMIT Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 2.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "8364824c-3513-4629-80c2-fca2cacd78cb"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:47.032216"], ["updated_at", "2015-11-16 18:21:47.032216"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 13:21:47 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:47.053401"], ["updated_at", "2015-11-16 18:21:47.053401"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/b396929e-40cc-4081-86ae-c45ed26fb2e9" for 127.0.0.1 at 2015-11-16 13:21:47 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"b396929e-40cc-4081-86ae-c45ed26fb2e9"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b396929e-40cc-4081-86ae-c45ed26fb2e9"]] Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 13:21:47 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-16 18:21:47.076279"], ["updated_at", "2015-11-16 18:21:47.076279"]]  (0.4ms) COMMIT Completed 201 Created in 11ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:47.090956"], ["updated_at", "2015-11-16 18:21:47.090956"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/0d10ceef-03d9-4c4e-aa39-815317939a49" for 127.0.0.1 at 2015-11-16 13:21:47 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"0d10ceef-03d9-4c4e-aa39-815317939a49"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "0d10ceef-03d9-4c4e-aa39-815317939a49"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "0d10ceef-03d9-4c4e-aa39-815317939a49"]]  (0.6ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:21:47.115988"], ["updated_at", "2015-11-16 18:21:47.115988"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/899bf772-c8a0-4ae8-a0a6-c35d157cbbf2" for 127.0.0.1 at 2015-11-16 13:21:47 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"899bf772-c8a0-4ae8-a0a6-c35d157cbbf2", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"899bf772-c8a0-4ae8-a0a6-c35d157cbbf2"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "899bf772-c8a0-4ae8-a0a6-c35d157cbbf2"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '899bf772-c8a0-4ae8-a0a6-c35d157cbbf2') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-16 18:21:47.129324"], ["id", "899bf772-c8a0-4ae8-a0a6-c35d157cbbf2"]]  (0.5ms) COMMIT Completed 200 OK in 13ms (Views: 0.4ms | ActiveRecord: 1.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "899bf772-c8a0-4ae8-a0a6-c35d157cbbf2"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.482195"], ["updated_at", "2015-11-16 18:23:49.482195"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.508883"], ["updated_at", "2015-11-16 18:23:49.508883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.529161"], ["updated_at", "2015-11-16 18:23:49.529161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.545529"], ["updated_at", "2015-11-16 18:23:49.545529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.563440"], ["updated_at", "2015-11-16 18:23:49.563440"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.587589"], ["updated_at", "2015-11-16 18:23:49.587589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6286b676-0c0d-4471-a47e-e4bdf62463de"], ["created_at", "2015-11-16 18:23:49.595197"], ["updated_at", "2015-11-16 18:23:49.595197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6286b676-0c0d-4471-a47e-e4bdf62463de"], ["created_at", "2015-11-16 18:23:49.601249"], ["updated_at", "2015-11-16 18:23:49.601249"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.611855"], ["updated_at", "2015-11-16 18:23:49.611855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "907c2caf-0eaa-450e-a636-6b2b9e04bd2f"], ["created_at", "2015-11-16 18:23:49.617470"], ["updated_at", "2015-11-16 18:23:49.617470"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.637766"], ["updated_at", "2015-11-16 18:23:49.637766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.651792"], ["updated_at", "2015-11-16 18:23:49.651792"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 18:23:49.667747"], ["updated_at", "2015-11-16 18:23:49.667747"]] SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "855bf5fe-4f28-4025-a7f9-7187c3ba8ecd"], ["created_at", "2015-11-16 18:23:49.669594"], ["updated_at", "2015-11-16 18:23:49.669594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.722521"], ["updated_at", "2015-11-16 18:23:49.722521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.726177"], ["updated_at", "2015-11-16 18:23:49.726177"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.736917"], ["updated_at", "2015-11-16 18:23:49.736917"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.770505"], ["updated_at", "2015-11-16 18:23:49.770505"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "41126ba8-7ba0-4314-a091-693b8a9cf82e"], ["created_at", "2015-11-16 18:23:49.776763"], ["updated_at", "2015-11-16 18:23:49.776763"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 13:23:49 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.821670"], ["updated_at", "2015-11-16 18:23:49.821670"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "61922910-ad3b-4774-9151-9d9a7faf6c9b"], ["created_at", "2015-11-16 18:23:49.827572"], ["updated_at", "2015-11-16 18:23:49.827572"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/1e8a2a23-f2f3-4af1-aea4-7c122eed2081" for 127.0.0.1 at 2015-11-16 13:23:49 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"1e8a2a23-f2f3-4af1-aea4-7c122eed2081"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "1e8a2a23-f2f3-4af1-aea4-7c122eed2081"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "61922910-ad3b-4774-9151-9d9a7faf6c9b"]] Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.888454"], ["updated_at", "2015-11-16 18:23:49.888454"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 13:23:49 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"b4800fd4-4a37-48d9-852d-cdab64cc1db4"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b4800fd4-4a37-48d9-852d-cdab64cc1db4"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "b4800fd4-4a37-48d9-852d-cdab64cc1db4"], ["created_at", "2015-11-16 18:23:49.898956"], ["updated_at", "2015-11-16 18:23:49.898956"]]  (0.3ms) COMMIT Completed 201 Created in 10ms (Views: 0.4ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.915604"], ["updated_at", "2015-11-16 18:23:49.915604"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 13:23:49 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"f7fadc6f-5d75-4a7e-b2ff-565139c33f97"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f7fadc6f-5d75-4a7e-b2ff-565139c33f97"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.940456"], ["updated_at", "2015-11-16 18:23:49.940456"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "233c1e01-c044-430f-942d-8b1139b3086b"], ["created_at", "2015-11-16 18:23:49.945926"], ["updated_at", "2015-11-16 18:23:49.945926"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/9af87418-2d7e-4b95-b54c-9215da5a4efb" for 127.0.0.1 at 2015-11-16 13:23:49 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"9af87418-2d7e-4b95-b54c-9215da5a4efb"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "9af87418-2d7e-4b95-b54c-9215da5a4efb"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "9af87418-2d7e-4b95-b54c-9215da5a4efb"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:49.967571"], ["updated_at", "2015-11-16 18:23:49.967571"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "25a4f628-09e0-4916-a028-27e3fb1fdf34"], ["created_at", "2015-11-16 18:23:49.973794"], ["updated_at", "2015-11-16 18:23:49.973794"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/5b029cca-113c-4222-8ab2-5cca5668d681" for 127.0.0.1 at 2015-11-16 13:23:49 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"5b029cca-113c-4222-8ab2-5cca5668d681", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"5b029cca-113c-4222-8ab2-5cca5668d681"}  (0.1ms) BEGIN Strain::Article Load (0.6ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5b029cca-113c-4222-8ab2-5cca5668d681"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "25a4f628-09e0-4916-a028-27e3fb1fdf34"]] Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5b029cca-113c-4222-8ab2-5cca5668d681') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 18:23:49.985804"], ["id", "5b029cca-113c-4222-8ab2-5cca5668d681"]]  (0.4ms) COMMIT Completed 200 OK in 13ms (Views: 0.4ms | ActiveRecord: 2.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "5b029cca-113c-4222-8ab2-5cca5668d681"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:50.005663"], ["updated_at", "2015-11-16 18:23:50.005663"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 13:23:50 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:50.028436"], ["updated_at", "2015-11-16 18:23:50.028436"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/1bbf63b3-e103-4092-961e-41bcaa94b64c" for 127.0.0.1 at 2015-11-16 13:23:50 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"1bbf63b3-e103-4092-961e-41bcaa94b64c"} Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "1bbf63b3-e103-4092-961e-41bcaa94b64c"]] Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 13:23:50 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-16 18:23:50.055722"], ["updated_at", "2015-11-16 18:23:50.055722"]]  (0.4ms) COMMIT Completed 201 Created in 12ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:50.071339"], ["updated_at", "2015-11-16 18:23:50.071339"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/b85bc8dd-f77d-4ee3-9df6-5c0b7fd99f43" for 127.0.0.1 at 2015-11-16 13:23:50 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"b85bc8dd-f77d-4ee3-9df6-5c0b7fd99f43"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b85bc8dd-f77d-4ee3-9df6-5c0b7fd99f43"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "b85bc8dd-f77d-4ee3-9df6-5c0b7fd99f43"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:23:50.100550"], ["updated_at", "2015-11-16 18:23:50.100550"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/facd91a7-386a-4906-a8fb-d9f13cd91036" for 127.0.0.1 at 2015-11-16 13:23:50 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"facd91a7-386a-4906-a8fb-d9f13cd91036", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"facd91a7-386a-4906-a8fb-d9f13cd91036"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "facd91a7-386a-4906-a8fb-d9f13cd91036"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'facd91a7-386a-4906-a8fb-d9f13cd91036') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-16 18:23:50.114662"], ["id", "facd91a7-386a-4906-a8fb-d9f13cd91036"]]  (0.4ms) COMMIT Completed 200 OK in 15ms (Views: 0.4ms | ActiveRecord: 1.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "facd91a7-386a-4906-a8fb-d9f13cd91036"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (24.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:44.338205"], ["updated_at", "2015-11-16 18:28:44.338205"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.2ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:44.389194"], ["updated_at", "2015-11-16 18:28:44.389194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:44.410521"], ["updated_at", "2015-11-16 18:28:44.410521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:44.428145"], ["updated_at", "2015-11-16 18:28:44.428145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:44.441745"], ["updated_at", "2015-11-16 18:28:44.441745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:44.455887"], ["updated_at", "2015-11-16 18:28:44.455887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b3a9047d-b3da-4738-9277-acf210157b7d"], ["created_at", "2015-11-16 18:28:44.461239"], ["updated_at", "2015-11-16 18:28:44.461239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b3a9047d-b3da-4738-9277-acf210157b7d"], ["created_at", "2015-11-16 18:28:44.466861"], ["updated_at", "2015-11-16 18:28:44.466861"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:44.478600"], ["updated_at", "2015-11-16 18:28:44.478600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d03e0407-d1a9-41b8-ab5a-fb35617c4bec"], ["created_at", "2015-11-16 18:28:44.484448"], ["updated_at", "2015-11-16 18:28:44.484448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:44.498802"], ["updated_at", "2015-11-16 18:28:44.498802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:44.513132"], ["updated_at", "2015-11-16 18:28:44.513132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 18:28:44.530100"], ["updated_at", "2015-11-16 18:28:44.530100"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9ba0a578-df89-4c61-8e4f-365aa82b8f95"], ["created_at", "2015-11-16 18:28:44.532029"], ["updated_at", "2015-11-16 18:28:44.532029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:53.721430"], ["updated_at", "2015-11-16 18:28:53.721430"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:53.729980"], ["updated_at", "2015-11-16 18:28:53.729980"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 18:28:53.742194"], ["updated_at", "2015-11-16 18:28:53.742194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (70.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:40.795796"], ["updated_at", "2015-11-16 19:22:40.795796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:40.891403"], ["updated_at", "2015-11-16 19:22:40.891403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:40.912198"], ["updated_at", "2015-11-16 19:22:40.912198"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:40.934485"], ["updated_at", "2015-11-16 19:22:40.934485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:40.947798"], ["updated_at", "2015-11-16 19:22:40.947798"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:40.966817"], ["updated_at", "2015-11-16 19:22:40.966817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a4a933f9-6115-47ab-b68a-b34c02a94ed9"], ["created_at", "2015-11-16 19:22:40.972194"], ["updated_at", "2015-11-16 19:22:40.972194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a4a933f9-6115-47ab-b68a-b34c02a94ed9"], ["created_at", "2015-11-16 19:22:40.977283"], ["updated_at", "2015-11-16 19:22:40.977283"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:40.988268"], ["updated_at", "2015-11-16 19:22:40.988268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a3a6fbae-f166-47db-b00d-267814b970eb"], ["created_at", "2015-11-16 19:22:40.994064"], ["updated_at", "2015-11-16 19:22:40.994064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.007892"], ["updated_at", "2015-11-16 19:22:41.007892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.021773"], ["updated_at", "2015-11-16 19:22:41.021773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 19:22:41.041785"], ["updated_at", "2015-11-16 19:22:41.041785"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ef58ee33-2842-4742-87b1-b88ea655dc1b"], ["created_at", "2015-11-16 19:22:41.043643"], ["updated_at", "2015-11-16 19:22:41.043643"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.114528"], ["updated_at", "2015-11-16 19:22:41.114528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.117818"], ["updated_at", "2015-11-16 19:22:41.117818"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.127276"], ["updated_at", "2015-11-16 19:22:41.127276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.155153"], ["updated_at", "2015-11-16 19:22:41.155153"]]  (1.2ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a462f8df-1c0c-4430-9af3-58a5216244d6"], ["created_at", "2015-11-16 19:22:41.163829"], ["updated_at", "2015-11-16 19:22:41.163829"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.207208"], ["updated_at", "2015-11-16 19:22:41.207208"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "72e522a8-285a-402e-ad83-6ee29274e965"], ["created_at", "2015-11-16 19:22:41.212913"], ["updated_at", "2015-11-16 19:22:41.212913"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/693f209e-b87f-4495-b2a4-561c09525584" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"693f209e-b87f-4495-b2a4-561c09525584"} Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "693f209e-b87f-4495-b2a4-561c09525584"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "72e522a8-285a-402e-ad83-6ee29274e965"]] Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.276778"], ["updated_at", "2015-11-16 19:22:41.276778"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"ecc02246-5478-4be6-aa88-ec6155fe6126"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ecc02246-5478-4be6-aa88-ec6155fe6126"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "ecc02246-5478-4be6-aa88-ec6155fe6126"], ["created_at", "2015-11-16 19:22:41.286866"], ["updated_at", "2015-11-16 19:22:41.286866"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.5ms | ActiveRecord: 1.7ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.306013"], ["updated_at", "2015-11-16 19:22:41.306013"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"4a9e78d4-c11d-4709-b050-c4961ee6b2e7"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "4a9e78d4-c11d-4709-b050-c4961ee6b2e7"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.328169"], ["updated_at", "2015-11-16 19:22:41.328169"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "48f7e935-cefe-45ab-a0e5-f4c0ab89c79e"], ["created_at", "2015-11-16 19:22:41.334476"], ["updated_at", "2015-11-16 19:22:41.334476"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/b72f01f0-e0e9-417e-afe4-ddabe4c09ac3" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"b72f01f0-e0e9-417e-afe4-ddabe4c09ac3"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "b72f01f0-e0e9-417e-afe4-ddabe4c09ac3"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "b72f01f0-e0e9-417e-afe4-ddabe4c09ac3"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.359628"], ["updated_at", "2015-11-16 19:22:41.359628"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5f6ed4b5-2201-483f-9408-3450e820271a"], ["created_at", "2015-11-16 19:22:41.365508"], ["updated_at", "2015-11-16 19:22:41.365508"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/2d87834b-37f3-4e2a-80b8-dd83793dc31a" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"2d87834b-37f3-4e2a-80b8-dd83793dc31a", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"2d87834b-37f3-4e2a-80b8-dd83793dc31a"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2d87834b-37f3-4e2a-80b8-dd83793dc31a"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5f6ed4b5-2201-483f-9408-3450e820271a"]] Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '2d87834b-37f3-4e2a-80b8-dd83793dc31a') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 19:22:41.377174"], ["id", "2d87834b-37f3-4e2a-80b8-dd83793dc31a"]]  (0.3ms) COMMIT Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "2d87834b-37f3-4e2a-80b8-dd83793dc31a"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.398068"], ["updated_at", "2015-11-16 19:22:41.398068"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.419907"], ["updated_at", "2015-11-16 19:22:41.419907"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/06760d34-a473-40b1-a1d2-3f867b3afdc7" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"06760d34-a473-40b1-a1d2-3f867b3afdc7"} Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "06760d34-a473-40b1-a1d2-3f867b3afdc7"]] Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-16 19:22:41.444646"], ["updated_at", "2015-11-16 19:22:41.444646"]]  (0.5ms) COMMIT Completed 201 Created in 12ms (Views: 0.4ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.460362"], ["updated_at", "2015-11-16 19:22:41.460362"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/66c0ce0a-a026-4abe-bd2d-0f4e9b5b0c3b" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"66c0ce0a-a026-4abe-bd2d-0f4e9b5b0c3b"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "66c0ce0a-a026-4abe-bd2d-0f4e9b5b0c3b"]] SQL (0.6ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "66c0ce0a-a026-4abe-bd2d-0f4e9b5b0c3b"]]  (0.3ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:22:41.481590"], ["updated_at", "2015-11-16 19:22:41.481590"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/f4614576-20c2-43b3-b1fe-95a8d383408c" for 127.0.0.1 at 2015-11-16 14:22:41 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"f4614576-20c2-43b3-b1fe-95a8d383408c", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"f4614576-20c2-43b3-b1fe-95a8d383408c"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "f4614576-20c2-43b3-b1fe-95a8d383408c"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'f4614576-20c2-43b3-b1fe-95a8d383408c') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-16 19:22:41.496071"], ["id", "f4614576-20c2-43b3-b1fe-95a8d383408c"]]  (0.3ms) COMMIT Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 1.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f4614576-20c2-43b3-b1fe-95a8d383408c"]]  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.697399"], ["updated_at", "2015-11-16 19:25:11.697399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.724675"], ["updated_at", "2015-11-16 19:25:11.724675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.746590"], ["updated_at", "2015-11-16 19:25:11.746590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.765394"], ["updated_at", "2015-11-16 19:25:11.765394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.778731"], ["updated_at", "2015-11-16 19:25:11.778731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.792286"], ["updated_at", "2015-11-16 19:25:11.792286"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6480536c-6242-4da8-bf8b-dc4bef8aeaaf"], ["created_at", "2015-11-16 19:25:11.797949"], ["updated_at", "2015-11-16 19:25:11.797949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6480536c-6242-4da8-bf8b-dc4bef8aeaaf"], ["created_at", "2015-11-16 19:25:11.802819"], ["updated_at", "2015-11-16 19:25:11.802819"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.813265"], ["updated_at", "2015-11-16 19:25:11.813265"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "0ed129e6-76b5-4b69-bd9e-c347b189b104"], ["created_at", "2015-11-16 19:25:11.818927"], ["updated_at", "2015-11-16 19:25:11.818927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.833036"], ["updated_at", "2015-11-16 19:25:11.833036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.851979"], ["updated_at", "2015-11-16 19:25:11.851979"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 19:25:11.869020"], ["updated_at", "2015-11-16 19:25:11.869020"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "014adb72-e231-488f-85c9-5a6877ceea90"], ["created_at", "2015-11-16 19:25:11.870775"], ["updated_at", "2015-11-16 19:25:11.870775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.936281"], ["updated_at", "2015-11-16 19:25:11.936281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.939373"], ["updated_at", "2015-11-16 19:25:11.939373"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.955982"], ["updated_at", "2015-11-16 19:25:11.955982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:11.987441"], ["updated_at", "2015-11-16 19:25:11.987441"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "84bbbfd8-be36-409c-98a2-e3162049f95a"], ["created_at", "2015-11-16 19:25:11.993305"], ["updated_at", "2015-11-16 19:25:11.993305"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:25:11 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.9ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.3ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:12.043764"], ["updated_at", "2015-11-16 19:25:12.043764"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "48c49de6-0175-4a70-9ce4-0a5e3a1bf4ef"], ["created_at", "2015-11-16 19:25:12.049152"], ["updated_at", "2015-11-16 19:25:12.049152"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/0efbb32d-28aa-4f2c-8dae-dcd8355315d6" for 127.0.0.1 at 2015-11-16 14:25:12 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"0efbb32d-28aa-4f2c-8dae-dcd8355315d6"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "0efbb32d-28aa-4f2c-8dae-dcd8355315d6"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "48c49de6-0175-4a70-9ce4-0a5e3a1bf4ef"]] Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:12.109327"], ["updated_at", "2015-11-16 19:25:12.109327"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 14:25:12 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"de587d0e-6df7-494c-8ccf-b918f352b6d9"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "de587d0e-6df7-494c-8ccf-b918f352b6d9"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "de587d0e-6df7-494c-8ccf-b918f352b6d9"], ["created_at", "2015-11-16 19:25:12.120350"], ["updated_at", "2015-11-16 19:25:12.120350"]]  (0.5ms) COMMIT Completed 201 Created in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:12.137521"], ["updated_at", "2015-11-16 19:25:12.137521"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 14:25:12 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"2cd5c0c8-b1a1-42ca-bd06-a4d2d0e3d9ad"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2cd5c0c8-b1a1-42ca-bd06-a4d2d0e3d9ad"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:12.160254"], ["updated_at", "2015-11-16 19:25:12.160254"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ce343022-03a8-4325-9b84-4493465c0521"], ["created_at", "2015-11-16 19:25:12.166163"], ["updated_at", "2015-11-16 19:25:12.166163"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/6df1a45d-a8d1-48e1-bfe0-093717d16bef" for 127.0.0.1 at 2015-11-16 14:25:12 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"6df1a45d-a8d1-48e1-bfe0-093717d16bef"}  (0.1ms) BEGIN Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "6df1a45d-a8d1-48e1-bfe0-093717d16bef"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "6df1a45d-a8d1-48e1-bfe0-093717d16bef"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:12.187679"], ["updated_at", "2015-11-16 19:25:12.187679"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "32df5ff7-d89e-4a52-9096-5a4bb7386520"], ["created_at", "2015-11-16 19:25:12.193346"], ["updated_at", "2015-11-16 19:25:12.193346"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/11c98227-002b-4250-9af8-052006e25934" for 127.0.0.1 at 2015-11-16 14:25:12 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"11c98227-002b-4250-9af8-052006e25934", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"11c98227-002b-4250-9af8-052006e25934"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "11c98227-002b-4250-9af8-052006e25934"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "32df5ff7-d89e-4a52-9096-5a4bb7386520"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '11c98227-002b-4250-9af8-052006e25934') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 19:25:12.203354"], ["id", "11c98227-002b-4250-9af8-052006e25934"]]  (0.3ms) COMMIT Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "11c98227-002b-4250-9af8-052006e25934"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:12.223466"], ["updated_at", "2015-11-16 19:25:12.223466"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:25:12 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:12.245530"], ["updated_at", "2015-11-16 19:25:12.245530"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/1a3d8902-5eac-4a1e-ae62-9e3456f30156" for 127.0.0.1 at 2015-11-16 14:25:12 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"1a3d8902-5eac-4a1e-ae62-9e3456f30156"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "1a3d8902-5eac-4a1e-ae62-9e3456f30156"]] Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:25:12 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-16 19:25:12.270003"], ["updated_at", "2015-11-16 19:25:12.270003"]]  (0.3ms) COMMIT Completed 201 Created in 11ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:12.285530"], ["updated_at", "2015-11-16 19:25:12.285530"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/2ba70fe9-c095-474a-a569-66827af3de9a" for 127.0.0.1 at 2015-11-16 14:25:12 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"2ba70fe9-c095-474a-a569-66827af3de9a"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "2ba70fe9-c095-474a-a569-66827af3de9a"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "2ba70fe9-c095-474a-a569-66827af3de9a"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:12.306489"], ["updated_at", "2015-11-16 19:25:12.306489"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/095e4dfe-d290-4181-80dd-16e16010d53f" for 127.0.0.1 at 2015-11-16 14:25:12 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"095e4dfe-d290-4181-80dd-16e16010d53f", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"095e4dfe-d290-4181-80dd-16e16010d53f"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "095e4dfe-d290-4181-80dd-16e16010d53f"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '095e4dfe-d290-4181-80dd-16e16010d53f') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-16 19:25:12.320844"], ["id", "095e4dfe-d290-4181-80dd-16e16010d53f"]]  (0.3ms) COMMIT Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "095e4dfe-d290-4181-80dd-16e16010d53f"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.065939"], ["updated_at", "2015-11-16 19:25:34.065939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.091489"], ["updated_at", "2015-11-16 19:25:34.091489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.121449"], ["updated_at", "2015-11-16 19:25:34.121449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.141536"], ["updated_at", "2015-11-16 19:25:34.141536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.155857"], ["updated_at", "2015-11-16 19:25:34.155857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.169864"], ["updated_at", "2015-11-16 19:25:34.169864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b9c79ac2-62eb-452a-b46c-332004f08ae8"], ["created_at", "2015-11-16 19:25:34.175599"], ["updated_at", "2015-11-16 19:25:34.175599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b9c79ac2-62eb-452a-b46c-332004f08ae8"], ["created_at", "2015-11-16 19:25:34.180644"], ["updated_at", "2015-11-16 19:25:34.180644"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.191085"], ["updated_at", "2015-11-16 19:25:34.191085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "62b6687e-7c88-4885-8925-e11449bfae5a"], ["created_at", "2015-11-16 19:25:34.196279"], ["updated_at", "2015-11-16 19:25:34.196279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.214888"], ["updated_at", "2015-11-16 19:25:34.214888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.230065"], ["updated_at", "2015-11-16 19:25:34.230065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 19:25:34.251265"], ["updated_at", "2015-11-16 19:25:34.251265"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2572ff4d-a96b-4d80-8eba-ce3b796980aa"], ["created_at", "2015-11-16 19:25:34.252996"], ["updated_at", "2015-11-16 19:25:34.252996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.321917"], ["updated_at", "2015-11-16 19:25:34.321917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.325667"], ["updated_at", "2015-11-16 19:25:34.325667"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.336651"], ["updated_at", "2015-11-16 19:25:34.336651"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.370763"], ["updated_at", "2015-11-16 19:25:34.370763"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "acd8df14-57b1-450f-a2f3-9fff7dd9d1cd"], ["created_at", "2015-11-16 19:25:34.376684"], ["updated_at", "2015-11-16 19:25:34.376684"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.422346"], ["updated_at", "2015-11-16 19:25:34.422346"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "cb58099f-cd02-4875-b390-3390a2a4748d"], ["created_at", "2015-11-16 19:25:34.428432"], ["updated_at", "2015-11-16 19:25:34.428432"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/2f6167c6-7705-4d7f-8a1b-0b598e8d5d8c" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"2f6167c6-7705-4d7f-8a1b-0b598e8d5d8c"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "2f6167c6-7705-4d7f-8a1b-0b598e8d5d8c"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "cb58099f-cd02-4875-b390-3390a2a4748d"]] Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.489840"], ["updated_at", "2015-11-16 19:25:34.489840"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"bcad5c01-8540-4d4a-95de-ff10bfc9c7a5"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "bcad5c01-8540-4d4a-95de-ff10bfc9c7a5"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "bcad5c01-8540-4d4a-95de-ff10bfc9c7a5"], ["created_at", "2015-11-16 19:25:34.501943"], ["updated_at", "2015-11-16 19:25:34.501943"]]  (0.3ms) COMMIT Completed 201 Created in 11ms (Views: 0.6ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.518688"], ["updated_at", "2015-11-16 19:25:34.518688"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"e4ea5d91-f24c-4785-b594-b4bb31c5a242"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e4ea5d91-f24c-4785-b594-b4bb31c5a242"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.541032"], ["updated_at", "2015-11-16 19:25:34.541032"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "34e7ea50-c1cb-4768-b40b-dfd41023617e"], ["created_at", "2015-11-16 19:25:34.547498"], ["updated_at", "2015-11-16 19:25:34.547498"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/42d5bff7-a987-4289-9ec5-a205377b1201" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"42d5bff7-a987-4289-9ec5-a205377b1201"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "42d5bff7-a987-4289-9ec5-a205377b1201"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "42d5bff7-a987-4289-9ec5-a205377b1201"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.571209"], ["updated_at", "2015-11-16 19:25:34.571209"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "56b32811-d437-4f53-bf76-0701dbdfd49e"], ["created_at", "2015-11-16 19:25:34.576979"], ["updated_at", "2015-11-16 19:25:34.576979"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/3965759a-d07d-4c23-9045-c3c7dc119840" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"3965759a-d07d-4c23-9045-c3c7dc119840", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"3965759a-d07d-4c23-9045-c3c7dc119840"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "3965759a-d07d-4c23-9045-c3c7dc119840"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "56b32811-d437-4f53-bf76-0701dbdfd49e"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '3965759a-d07d-4c23-9045-c3c7dc119840') LIMIT 1 SQL (0.8ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 19:25:34.586783"], ["id", "3965759a-d07d-4c23-9045-c3c7dc119840"]]  (0.7ms) COMMIT Completed 200 OK in 15ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "3965759a-d07d-4c23-9045-c3c7dc119840"]]  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.612888"], ["updated_at", "2015-11-16 19:25:34.612888"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.643228"], ["updated_at", "2015-11-16 19:25:34.643228"]]  (0.7ms) COMMIT Started GET "/jsonapi/variants/e141b34d-6571-4d51-a452-5b6d561023c1" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"e141b34d-6571-4d51-a452-5b6d561023c1"} Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "e141b34d-6571-4d51-a452-5b6d561023c1"]] Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 0.6ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-16 19:25:34.675662"], ["updated_at", "2015-11-16 19:25:34.675662"]]  (0.3ms) COMMIT Completed 201 Created in 11ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.692340"], ["updated_at", "2015-11-16 19:25:34.692340"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/d2b5524d-a858-45f3-9e8c-ed2ddb125b66" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"d2b5524d-a858-45f3-9e8c-ed2ddb125b66"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "d2b5524d-a858-45f3-9e8c-ed2ddb125b66"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "d2b5524d-a858-45f3-9e8c-ed2ddb125b66"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:34.712300"], ["updated_at", "2015-11-16 19:25:34.712300"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/5e820aa2-2d6f-4abc-97cd-3f49606b00b8" for 127.0.0.1 at 2015-11-16 14:25:34 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"5e820aa2-2d6f-4abc-97cd-3f49606b00b8", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"5e820aa2-2d6f-4abc-97cd-3f49606b00b8"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "5e820aa2-2d6f-4abc-97cd-3f49606b00b8"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '5e820aa2-2d6f-4abc-97cd-3f49606b00b8') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-16 19:25:34.725493"], ["id", "5e820aa2-2d6f-4abc-97cd-3f49606b00b8"]]  (0.3ms) COMMIT Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5e820aa2-2d6f-4abc-97cd-3f49606b00b8"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:50.906870"], ["updated_at", "2015-11-16 19:25:50.906870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:50.930661"], ["updated_at", "2015-11-16 19:25:50.930661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:50.952490"], ["updated_at", "2015-11-16 19:25:50.952490"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:50.975315"], ["updated_at", "2015-11-16 19:25:50.975315"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:50.995788"], ["updated_at", "2015-11-16 19:25:50.995788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.014126"], ["updated_at", "2015-11-16 19:25:51.014126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "054b4d2e-5c58-4beb-9a39-18b00df2fe4c"], ["created_at", "2015-11-16 19:25:51.019891"], ["updated_at", "2015-11-16 19:25:51.019891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "054b4d2e-5c58-4beb-9a39-18b00df2fe4c"], ["created_at", "2015-11-16 19:25:51.025228"], ["updated_at", "2015-11-16 19:25:51.025228"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.035619"], ["updated_at", "2015-11-16 19:25:51.035619"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8f78b39c-7f9c-4e6b-ba70-ed4a0dd12c02"], ["created_at", "2015-11-16 19:25:51.041250"], ["updated_at", "2015-11-16 19:25:51.041250"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.056606"], ["updated_at", "2015-11-16 19:25:51.056606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.069927"], ["updated_at", "2015-11-16 19:25:51.069927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 19:25:51.085360"], ["updated_at", "2015-11-16 19:25:51.085360"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5a31e985-25a1-4844-b3bb-55f41e49fd07"], ["created_at", "2015-11-16 19:25:51.087160"], ["updated_at", "2015-11-16 19:25:51.087160"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.140207"], ["updated_at", "2015-11-16 19:25:51.140207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.143379"], ["updated_at", "2015-11-16 19:25:51.143379"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.163215"], ["updated_at", "2015-11-16 19:25:51.163215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.199535"], ["updated_at", "2015-11-16 19:25:51.199535"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "a0245f39-5b1d-4965-aa7c-4a0c76125007"], ["created_at", "2015-11-16 19:25:51.206056"], ["updated_at", "2015-11-16 19:25:51.206056"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.249676"], ["updated_at", "2015-11-16 19:25:51.249676"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "755f4a94-9649-4d7d-9262-53ef52254de3"], ["created_at", "2015-11-16 19:25:51.256028"], ["updated_at", "2015-11-16 19:25:51.256028"]]  (0.5ms) COMMIT Started GET "/jsonapi/articles/5a2e5cb1-67cc-451b-832a-4de5d5a31501" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"5a2e5cb1-67cc-451b-832a-4de5d5a31501"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5a2e5cb1-67cc-451b-832a-4de5d5a31501"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "755f4a94-9649-4d7d-9262-53ef52254de3"]] Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.315208"], ["updated_at", "2015-11-16 19:25:51.315208"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"1877bd9e-c1ff-45a5-9dc0-1f73b2463536"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1877bd9e-c1ff-45a5-9dc0-1f73b2463536"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "1877bd9e-c1ff-45a5-9dc0-1f73b2463536"], ["created_at", "2015-11-16 19:25:51.326393"], ["updated_at", "2015-11-16 19:25:51.326393"]]  (0.3ms) COMMIT Completed 201 Created in 11ms (Views: 0.5ms | ActiveRecord: 1.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.343021"], ["updated_at", "2015-11-16 19:25:51.343021"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"6024de68-d66f-4a6d-911f-6978a64f2af7"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6024de68-d66f-4a6d-911f-6978a64f2af7"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.365290"], ["updated_at", "2015-11-16 19:25:51.365290"]]  (0.3ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2b4fb831-ff33-4558-93f7-281c8650b361"], ["created_at", "2015-11-16 19:25:51.371402"], ["updated_at", "2015-11-16 19:25:51.371402"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/48bfe27a-957a-4bc2-859a-2247b6cfb608" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"48bfe27a-957a-4bc2-859a-2247b6cfb608"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "48bfe27a-957a-4bc2-859a-2247b6cfb608"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "48bfe27a-957a-4bc2-859a-2247b6cfb608"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.392780"], ["updated_at", "2015-11-16 19:25:51.392780"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "61254818-e0fc-471f-8e00-4974af65c8c9"], ["created_at", "2015-11-16 19:25:51.398853"], ["updated_at", "2015-11-16 19:25:51.398853"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/ea015abf-5605-4269-9016-f9a8fc3589c8" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"ea015abf-5605-4269-9016-f9a8fc3589c8", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"ea015abf-5605-4269-9016-f9a8fc3589c8"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ea015abf-5605-4269-9016-f9a8fc3589c8"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "61254818-e0fc-471f-8e00-4974af65c8c9"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'ea015abf-5605-4269-9016-f9a8fc3589c8') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 19:25:51.409502"], ["id", "ea015abf-5605-4269-9016-f9a8fc3589c8"]]  (0.5ms) COMMIT Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "ea015abf-5605-4269-9016-f9a8fc3589c8"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.428650"], ["updated_at", "2015-11-16 19:25:51.428650"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.449598"], ["updated_at", "2015-11-16 19:25:51.449598"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/b9b8f4b5-4e8b-4f57-9e14-3400901a1a33" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"b9b8f4b5-4e8b-4f57-9e14-3400901a1a33"} Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b9b8f4b5-4e8b-4f57-9e14-3400901a1a33"]] Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-16 19:25:51.474477"], ["updated_at", "2015-11-16 19:25:51.474477"]]  (0.4ms) COMMIT Completed 201 Created in 11ms (Views: 0.3ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.490319"], ["updated_at", "2015-11-16 19:25:51.490319"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/c518029c-f1c9-4fab-88e4-d3d29d4a1100" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"c518029c-f1c9-4fab-88e4-d3d29d4a1100"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c518029c-f1c9-4fab-88e4-d3d29d4a1100"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "c518029c-f1c9-4fab-88e4-d3d29d4a1100"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:25:51.509190"], ["updated_at", "2015-11-16 19:25:51.509190"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/6edfe681-a2fe-4b96-a6f7-ef73ab7b1ae6" for 127.0.0.1 at 2015-11-16 14:25:51 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"6edfe681-a2fe-4b96-a6f7-ef73ab7b1ae6", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"6edfe681-a2fe-4b96-a6f7-ef73ab7b1ae6"}  (0.1ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "6edfe681-a2fe-4b96-a6f7-ef73ab7b1ae6"]] Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '6edfe681-a2fe-4b96-a6f7-ef73ab7b1ae6') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-16 19:25:51.526559"], ["id", "6edfe681-a2fe-4b96-a6f7-ef73ab7b1ae6"]]  (0.5ms) COMMIT Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 2.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6edfe681-a2fe-4b96-a6f7-ef73ab7b1ae6"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.1ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (4.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.176271"], ["updated_at", "2015-11-16 19:26:50.176271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.201886"], ["updated_at", "2015-11-16 19:26:50.201886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.222387"], ["updated_at", "2015-11-16 19:26:50.222387"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.244595"], ["updated_at", "2015-11-16 19:26:50.244595"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.259572"], ["updated_at", "2015-11-16 19:26:50.259572"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.278432"], ["updated_at", "2015-11-16 19:26:50.278432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8b508c77-5eb3-4d8d-a5a8-3d5470634b10"], ["created_at", "2015-11-16 19:26:50.283854"], ["updated_at", "2015-11-16 19:26:50.283854"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "8b508c77-5eb3-4d8d-a5a8-3d5470634b10"], ["created_at", "2015-11-16 19:26:50.292256"], ["updated_at", "2015-11-16 19:26:50.292256"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.303323"], ["updated_at", "2015-11-16 19:26:50.303323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "55186a63-a292-486b-a1d3-36121a621462"], ["created_at", "2015-11-16 19:26:50.309129"], ["updated_at", "2015-11-16 19:26:50.309129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.325033"], ["updated_at", "2015-11-16 19:26:50.325033"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.343814"], ["updated_at", "2015-11-16 19:26:50.343814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 19:26:50.361986"], ["updated_at", "2015-11-16 19:26:50.361986"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "43f46d36-95ba-455c-ace4-277466900354"], ["created_at", "2015-11-16 19:26:50.364024"], ["updated_at", "2015-11-16 19:26:50.364024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.436203"], ["updated_at", "2015-11-16 19:26:50.436203"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.439980"], ["updated_at", "2015-11-16 19:26:50.439980"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.452521"], ["updated_at", "2015-11-16 19:26:50.452521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.479845"], ["updated_at", "2015-11-16 19:26:50.479845"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "81ee8f52-7857-48ed-acfa-afea7c5103be"], ["created_at", "2015-11-16 19:26:50.485978"], ["updated_at", "2015-11-16 19:26:50.485978"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.8ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.532483"], ["updated_at", "2015-11-16 19:26:50.532483"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c69ac629-6293-4d2a-bafb-5ab9e1fa4f0a"], ["created_at", "2015-11-16 19:26:50.537923"], ["updated_at", "2015-11-16 19:26:50.537923"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/24523096-46c3-4ac3-95a2-77acc0007e80" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"24523096-46c3-4ac3-95a2-77acc0007e80"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "24523096-46c3-4ac3-95a2-77acc0007e80"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c69ac629-6293-4d2a-bafb-5ab9e1fa4f0a"]] Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.596102"], ["updated_at", "2015-11-16 19:26:50.596102"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"b4c27b1d-5ccf-4edd-8802-e31542117c1c"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b4c27b1d-5ccf-4edd-8802-e31542117c1c"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "b4c27b1d-5ccf-4edd-8802-e31542117c1c"], ["created_at", "2015-11-16 19:26:50.604919"], ["updated_at", "2015-11-16 19:26:50.604919"]]  (0.4ms) COMMIT Completed 201 Created in 10ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.621837"], ["updated_at", "2015-11-16 19:26:50.621837"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"eb90a4d2-d8cb-46aa-a5e2-55f83382922b"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "eb90a4d2-d8cb-46aa-a5e2-55f83382922b"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.647184"], ["updated_at", "2015-11-16 19:26:50.647184"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7a0ad4ff-24b6-417a-aaae-e0672462ed76"], ["created_at", "2015-11-16 19:26:50.653529"], ["updated_at", "2015-11-16 19:26:50.653529"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/9272b2f1-4804-42c6-b5ba-b88fd7ab8059" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"9272b2f1-4804-42c6-b5ba-b88fd7ab8059"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "9272b2f1-4804-42c6-b5ba-b88fd7ab8059"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "9272b2f1-4804-42c6-b5ba-b88fd7ab8059"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.673665"], ["updated_at", "2015-11-16 19:26:50.673665"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "01d7ed46-cc87-431b-80d3-359bae91f89a"], ["created_at", "2015-11-16 19:26:50.679400"], ["updated_at", "2015-11-16 19:26:50.679400"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/84906cde-ab6b-446b-89ac-e90374943cb3" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"84906cde-ab6b-446b-89ac-e90374943cb3", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"84906cde-ab6b-446b-89ac-e90374943cb3"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "84906cde-ab6b-446b-89ac-e90374943cb3"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "01d7ed46-cc87-431b-80d3-359bae91f89a"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '84906cde-ab6b-446b-89ac-e90374943cb3') LIMIT 1 SQL (0.3ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-16 19:26:50.689836"], ["id", "84906cde-ab6b-446b-89ac-e90374943cb3"]]  (0.4ms) COMMIT Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "84906cde-ab6b-446b-89ac-e90374943cb3"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.709446"], ["updated_at", "2015-11-16 19:26:50.709446"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.732014"], ["updated_at", "2015-11-16 19:26:50.732014"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/184e239d-e207-4e50-b163-8c4ebfb74aa1" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"184e239d-e207-4e50-b163-8c4ebfb74aa1"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "184e239d-e207-4e50-b163-8c4ebfb74aa1"]] Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-16 19:26:50.755698"], ["updated_at", "2015-11-16 19:26:50.755698"]]  (0.4ms) COMMIT Completed 201 Created in 12ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.771788"], ["updated_at", "2015-11-16 19:26:50.771788"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/68ee606b-f724-4f00-a8e1-64c92a1bccdd" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"68ee606b-f724-4f00-a8e1-64c92a1bccdd"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "68ee606b-f724-4f00-a8e1-64c92a1bccdd"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "68ee606b-f724-4f00-a8e1-64c92a1bccdd"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 19:26:50.792463"], ["updated_at", "2015-11-16 19:26:50.792463"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/36c365ce-3ba2-410e-a214-832f0faa3572" for 127.0.0.1 at 2015-11-16 14:26:50 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"36c365ce-3ba2-410e-a214-832f0faa3572", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"36c365ce-3ba2-410e-a214-832f0faa3572"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "36c365ce-3ba2-410e-a214-832f0faa3572"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '36c365ce-3ba2-410e-a214-832f0faa3572') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-16 19:26:50.805783"], ["id", "36c365ce-3ba2-410e-a214-832f0faa3572"]]  (0.5ms) COMMIT Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "36c365ce-3ba2-410e-a214-832f0faa3572"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to EnableUuid (20151103060035)  (0.3ms) BEGIN SQL (13.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103060035"]]  (0.6ms) COMMIT Migrating to CreateStrainVariants (20151103060224)  (0.1ms) BEGIN  (8.5ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "index_strain_variants_on_name" ON "strain_variants" ("name") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103060224"]]  (0.6ms) COMMIT Migrating to CreateStrainArticles (20151104200908)  (0.1ms) BEGIN  (7.1ms) CREATE TABLE "strain_articles" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "variant_id" uuid, "strain_type" character varying DEFAULT 'Article' NOT NULL, "title" character varying NOT NULL, "body" jsonb NOT NULL, "slug" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_strain_articles_on_variant_id" ON "strain_articles" ("variant_id")  (1.6ms) CREATE UNIQUE INDEX "index_strain_articles_on_slug" ON "strain_articles" ("slug") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151104200908"]]  (0.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (9.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 = 'strain_articles' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (7.5ms) 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 = 'strain_variants' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 22:32:28.022003"], ["updated_at", "2015-11-16 22:32:28.022003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 22:32:28.045179"], ["updated_at", "2015-11-16 22:32:28.045179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 22:32:28.064783"], ["updated_at", "2015-11-16 22:32:28.064783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 22:32:28.090505"], ["updated_at", "2015-11-16 22:32:28.090505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 22:32:28.105544"], ["updated_at", "2015-11-16 22:32:28.105544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 22:32:28.119041"], ["updated_at", "2015-11-16 22:32:28.119041"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2d7f3d4e-3c6a-448a-b6e5-6f131cdfcfcf"], ["created_at", "2015-11-16 22:32:28.127559"], ["updated_at", "2015-11-16 22:32:28.127559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2d7f3d4e-3c6a-448a-b6e5-6f131cdfcfcf"], ["created_at", "2015-11-16 22:32:28.135556"], ["updated_at", "2015-11-16 22:32:28.135556"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 22:32:28.147050"], ["updated_at", "2015-11-16 22:32:28.147050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ed0704d5-a827-479e-9a38-eec2ee129466"], ["created_at", "2015-11-16 22:32:28.152387"], ["updated_at", "2015-11-16 22:32:28.152387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 22:32:28.169035"], ["updated_at", "2015-11-16 22:32:28.169035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-16 22:32:28.183622"], ["updated_at", "2015-11-16 22:32:28.183622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-16 22:32:28.200906"], ["updated_at", "2015-11-16 22:32:28.200906"]] SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4bf53395-2610-4e3b-bff0-c49932671cde"], ["created_at", "2015-11-16 22:32:28.203539"], ["updated_at", "2015-11-16 22:32:28.203539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (5.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to EnableUuid (20151103060035)  (0.1ms) BEGIN SQL (4.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp" SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103060035"]]  (0.8ms) COMMIT Migrating to CreateStrainVariants (20151103060224)  (0.2ms) BEGIN  (7.1ms) CREATE TABLE "strain_variants" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "schema" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "index_strain_variants_on_name" ON "strain_variants" ("name") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103060224"]]  (0.5ms) COMMIT Migrating to CreateStrainArticles (20151104200908)  (0.2ms) BEGIN  (4.2ms) CREATE TABLE "strain_articles" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "variant_id" uuid, "strain_type" character varying DEFAULT 'Strain::Article' NOT NULL, "title" character varying NOT NULL, "body" jsonb NOT NULL, "slug" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_strain_articles_on_variant_id" ON "strain_articles" ("variant_id")  (1.1ms) CREATE UNIQUE INDEX "index_strain_articles_on_slug" ON "strain_articles" ("slug") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151104200908"]]  (0.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.1ms) 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 = 'strain_articles' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (4.5ms) 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 = 'strain_variants' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (5.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.9ms) BEGIN Strain::Variant Exists (7.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (2.7ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (4.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (36.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 18:04:28.689773"], ["updated_at", "2015-11-17 18:04:28.689773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 18:04:28.732524"], ["updated_at", "2015-11-17 18:04:28.732524"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 18:04:28.747729"], ["updated_at", "2015-11-17 18:04:28.747729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (2.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.8ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_articles" SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_articles" SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.9ms) DELETE FROM "strain_articles" SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_articles" SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:16:12.642670"], ["updated_at", "2015-11-17 19:16:12.642670"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:16:12.650720"], ["updated_at", "2015-11-17 19:16:12.650720"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:16:12.664378"], ["updated_at", "2015-11-17 19:16:12.664378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:17:37.946994"], ["updated_at", "2015-11-17 19:17:37.946994"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:17:37.961266"], ["updated_at", "2015-11-17 19:17:37.961266"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:17:37.976652"], ["updated_at", "2015-11-17 19:17:37.976652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:14.627634"], ["updated_at", "2015-11-17 19:19:14.627634"]]  (1.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:19:14 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (14.3ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 14.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (3.1ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:14.701173"], ["updated_at", "2015-11-17 19:19:14.701173"]]  (0.7ms) COMMIT Started GET "/jsonapi/variants/d1c51f7e-ffc3-498a-950e-40498daa983f" for 127.0.0.1 at 2015-11-17 14:19:14 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"d1c51f7e-ffc3-498a-950e-40498daa983f"} Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "d1c51f7e-ffc3-498a-950e-40498daa983f"]] Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:14.741191"], ["updated_at", "2015-11-17 19:19:14.741191"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/7153491b-796d-4852-b3d5-f6fcd7805800" for 127.0.0.1 at 2015-11-17 14:19:14 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"7153491b-796d-4852-b3d5-f6fcd7805800"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "7153491b-796d-4852-b3d5-f6fcd7805800"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "7153491b-796d-4852-b3d5-f6fcd7805800"]]  (0.3ms) COMMIT Completed 204 No Content in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:14.762897"], ["updated_at", "2015-11-17 19:19:14.762897"]]  (0.3ms) COMMIT SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.595896"], ["updated_at", "2015-11-17 19:19:18.595896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.621137"], ["updated_at", "2015-11-17 19:19:18.621137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.646718"], ["updated_at", "2015-11-17 19:19:18.646718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.671552"], ["updated_at", "2015-11-17 19:19:18.671552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.693028"], ["updated_at", "2015-11-17 19:19:18.693028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.710296"], ["updated_at", "2015-11-17 19:19:18.710296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (2.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f1d13c6d-0ba3-4ffe-a28f-d9611a5af69d"], ["created_at", "2015-11-17 19:19:18.715435"], ["updated_at", "2015-11-17 19:19:18.715435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f1d13c6d-0ba3-4ffe-a28f-d9611a5af69d"], ["created_at", "2015-11-17 19:19:18.723625"], ["updated_at", "2015-11-17 19:19:18.723625"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.737837"], ["updated_at", "2015-11-17 19:19:18.737837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "842af72b-8484-4aa1-b038-7a3cdc8fdc14"], ["created_at", "2015-11-17 19:19:18.744807"], ["updated_at", "2015-11-17 19:19:18.744807"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.768284"], ["updated_at", "2015-11-17 19:19:18.768284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.784622"], ["updated_at", "2015-11-17 19:19:18.784622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-17 19:19:18.806069"], ["updated_at", "2015-11-17 19:19:18.806069"]] SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "46a2dfd4-2c2e-41c1-90e7-65b93cfa8031"], ["created_at", "2015-11-17 19:19:18.807879"], ["updated_at", "2015-11-17 19:19:18.807879"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.885447"], ["updated_at", "2015-11-17 19:19:18.885447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.888680"], ["updated_at", "2015-11-17 19:19:18.888680"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.902394"], ["updated_at", "2015-11-17 19:19:18.902394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.945745"], ["updated_at", "2015-11-17 19:19:18.945745"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "bfce2198-255d-4a6f-a793-07e5d99708b6"], ["created_at", "2015-11-17 19:19:18.953359"], ["updated_at", "2015-11-17 19:19:18.953359"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:19:18 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_articles" SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:18.997003"], ["updated_at", "2015-11-17 19:19:18.997003"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "c30be446-7813-416c-b757-ba5db9dcccdc"], ["created_at", "2015-11-17 19:19:19.003188"], ["updated_at", "2015-11-17 19:19:19.003188"]]  (0.3ms) COMMIT Started GET "/jsonapi/articles/0f87d01b-790e-4813-aca1-b52479aaee2f" for 127.0.0.1 at 2015-11-17 14:19:19 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"0f87d01b-790e-4813-aca1-b52479aaee2f"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "0f87d01b-790e-4813-aca1-b52479aaee2f"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c30be446-7813-416c-b757-ba5db9dcccdc"]] Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:19.071633"], ["updated_at", "2015-11-17 19:19:19.071633"]]  (0.8ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-17 14:19:19 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"9561fa61-811d-4ba2-8338-1a6a5b6bb636"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9561fa61-811d-4ba2-8338-1a6a5b6bb636"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "9561fa61-811d-4ba2-8338-1a6a5b6bb636"], ["created_at", "2015-11-17 19:19:19.090214"], ["updated_at", "2015-11-17 19:19:19.090214"]]  (0.4ms) COMMIT Completed 201 Created in 18ms (Views: 0.6ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:19.114066"], ["updated_at", "2015-11-17 19:19:19.114066"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-17 14:19:19 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"41056a1b-374a-4a05-af33-5f155ab7cac9"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "41056a1b-374a-4a05-af33-5f155ab7cac9"]] Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 9ms (Views: 0.3ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:19.146139"], ["updated_at", "2015-11-17 19:19:19.146139"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "badfea68-12ae-49bd-929b-cb9ba589724c"], ["created_at", "2015-11-17 19:19:19.152652"], ["updated_at", "2015-11-17 19:19:19.152652"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/articles/f2d0b286-7abc-4aac-a6b4-f58b26674b19" for 127.0.0.1 at 2015-11-17 14:19:19 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"f2d0b286-7abc-4aac-a6b4-f58b26674b19"}  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "f2d0b286-7abc-4aac-a6b4-f58b26674b19"]] SQL (0.4ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "f2d0b286-7abc-4aac-a6b4-f58b26674b19"]]  (0.5ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:19.181044"], ["updated_at", "2015-11-17 19:19:19.181044"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5000d6f6-8297-4514-a031-63d2615198a6"], ["created_at", "2015-11-17 19:19:19.187194"], ["updated_at", "2015-11-17 19:19:19.187194"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/ee833571-06fc-4047-be4b-1b3cf19e923e" for 127.0.0.1 at 2015-11-17 14:19:19 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"ee833571-06fc-4047-be4b-1b3cf19e923e", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"ee833571-06fc-4047-be4b-1b3cf19e923e"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "ee833571-06fc-4047-be4b-1b3cf19e923e"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5000d6f6-8297-4514-a031-63d2615198a6"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'ee833571-06fc-4047-be4b-1b3cf19e923e') LIMIT 1 SQL (3.1ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-17 19:19:19.200386"], ["id", "ee833571-06fc-4047-be4b-1b3cf19e923e"]]  (0.3ms) COMMIT Completed 200 OK in 20ms (Views: 0.9ms | ActiveRecord: 4.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Article Load (0.5ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "ee833571-06fc-4047-be4b-1b3cf19e923e"]]  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:19.233575"], ["updated_at", "2015-11-17 19:19:19.233575"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:19:19 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:19.260130"], ["updated_at", "2015-11-17 19:19:19.260130"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/c90fc9e6-0c28-4230-8509-31bb4bb33912" for 127.0.0.1 at 2015-11-17 14:19:19 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"c90fc9e6-0c28-4230-8509-31bb4bb33912"} Strain::Variant Load (2.0ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c90fc9e6-0c28-4230-8509-31bb4bb33912"]] Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 2.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:19.287709"], ["updated_at", "2015-11-17 19:19:19.287709"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/9500d864-8a5b-4fef-bcfa-fa3242bf8e76" for 127.0.0.1 at 2015-11-17 14:19:19 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"9500d864-8a5b-4fef-bcfa-fa3242bf8e76"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "9500d864-8a5b-4fef-bcfa-fa3242bf8e76"]] SQL (0.4ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "9500d864-8a5b-4fef-bcfa-fa3242bf8e76"]]  (0.5ms) COMMIT Completed 204 No Content in 6ms (Views: 0.3ms | ActiveRecord: 1.6ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:19.319694"], ["updated_at", "2015-11-17 19:19:19.319694"]]  (0.6ms) COMMIT SQL (0.6ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:51.627300"], ["updated_at", "2015-11-17 19:19:51.627300"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:19:51 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:51.679442"], ["updated_at", "2015-11-17 19:19:51.679442"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/efbb310a-870d-4a5d-aeba-e7b44da20b69" for 127.0.0.1 at 2015-11-17 14:19:51 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"efbb310a-870d-4a5d-aeba-e7b44da20b69"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "efbb310a-870d-4a5d-aeba-e7b44da20b69"]] Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:19:51 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-17 19:19:51.711017"], ["updated_at", "2015-11-17 19:19:51.711017"]]  (0.3ms) COMMIT Completed 201 Created in 14ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:51.729488"], ["updated_at", "2015-11-17 19:19:51.729488"]]  (0.6ms) COMMIT Started DELETE "/jsonapi/variants/272b7bec-ad37-4787-8770-6d3b2cdf710b" for 127.0.0.1 at 2015-11-17 14:19:51 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"272b7bec-ad37-4787-8770-6d3b2cdf710b"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "272b7bec-ad37-4787-8770-6d3b2cdf710b"]] SQL (0.4ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "272b7bec-ad37-4787-8770-6d3b2cdf710b"]]  (0.5ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_variants"  (0.2ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:19:51.759448"], ["updated_at", "2015-11-17 19:19:51.759448"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/variants/7add2652-4a56-4fe1-95d2-e98fc4a3b54e" for 127.0.0.1 at 2015-11-17 14:19:51 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"7add2652-4a56-4fe1-95d2-e98fc4a3b54e", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"7add2652-4a56-4fe1-95d2-e98fc4a3b54e"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "7add2652-4a56-4fe1-95d2-e98fc4a3b54e"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '7add2652-4a56-4fe1-95d2-e98fc4a3b54e') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-17 19:19:51.780183"], ["id", "7add2652-4a56-4fe1-95d2-e98fc4a3b54e"]]  (0.3ms) COMMIT Completed 200 OK in 21ms (Views: 0.4ms | ActiveRecord: 2.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "7add2652-4a56-4fe1-95d2-e98fc4a3b54e"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:20:41.664510"], ["updated_at", "2015-11-17 19:20:41.664510"]]  (0.6ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:20:41 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:20:41.714339"], ["updated_at", "2015-11-17 19:20:41.714339"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/c675a10b-f179-45df-a5af-be258eadcecb" for 127.0.0.1 at 2015-11-17 14:20:41 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"c675a10b-f179-45df-a5af-be258eadcecb"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c675a10b-f179-45df-a5af-be258eadcecb"]] Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:20:41 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-17 19:20:41.744338"], ["updated_at", "2015-11-17 19:20:41.744338"]]  (0.6ms) COMMIT Completed 201 Created in 14ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:20:41.762879"], ["updated_at", "2015-11-17 19:20:41.762879"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/ecfa05e3-8662-446c-bf08-28e7019ac3aa" for 127.0.0.1 at 2015-11-17 14:20:41 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"ecfa05e3-8662-446c-bf08-28e7019ac3aa"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "ecfa05e3-8662-446c-bf08-28e7019ac3aa"]] SQL (0.4ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "ecfa05e3-8662-446c-bf08-28e7019ac3aa"]]  (0.5ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:20:41.790903"], ["updated_at", "2015-11-17 19:20:41.790903"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/a94d6704-e59f-40e9-b2c8-21e6ec914915" for 127.0.0.1 at 2015-11-17 14:20:41 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"a94d6704-e59f-40e9-b2c8-21e6ec914915", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"a94d6704-e59f-40e9-b2c8-21e6ec914915"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "a94d6704-e59f-40e9-b2c8-21e6ec914915"]] Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'a94d6704-e59f-40e9-b2c8-21e6ec914915') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-17 19:20:41.812604"], ["id", "a94d6704-e59f-40e9-b2c8-21e6ec914915"]]  (0.3ms) COMMIT Completed 200 OK in 20ms (Views: 0.4ms | ActiveRecord: 2.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "a94d6704-e59f-40e9-b2c8-21e6ec914915"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:20:47.618496"], ["updated_at", "2015-11-17 19:20:47.618496"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:20:47 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (2.2ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 2.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:20:47.665951"], ["updated_at", "2015-11-17 19:20:47.665951"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/765a5883-4f3f-49f0-84a3-4d426013e3f5" for 127.0.0.1 at 2015-11-17 14:20:47 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"765a5883-4f3f-49f0-84a3-4d426013e3f5"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "765a5883-4f3f-49f0-84a3-4d426013e3f5"]] Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:20:47 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-17 19:20:47.697564"], ["updated_at", "2015-11-17 19:20:47.697564"]]  (0.3ms) COMMIT Completed 201 Created in 15ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.9ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:20:47.717010"], ["updated_at", "2015-11-17 19:20:47.717010"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/e153ee0a-a65d-416f-943a-b5de6d84add4" for 127.0.0.1 at 2015-11-17 14:20:47 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"e153ee0a-a65d-416f-943a-b5de6d84add4"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "e153ee0a-a65d-416f-943a-b5de6d84add4"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "e153ee0a-a65d-416f-943a-b5de6d84add4"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:20:47.741524"], ["updated_at", "2015-11-17 19:20:47.741524"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/e83c491f-7c1f-4bb0-b616-101ee6a714fd" for 127.0.0.1 at 2015-11-17 14:20:47 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"e83c491f-7c1f-4bb0-b616-101ee6a714fd", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"e83c491f-7c1f-4bb0-b616-101ee6a714fd"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "e83c491f-7c1f-4bb0-b616-101ee6a714fd"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'e83c491f-7c1f-4bb0-b616-101ee6a714fd') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-17 19:20:47.758249"], ["id", "e83c491f-7c1f-4bb0-b616-101ee6a714fd"]]  (0.3ms) COMMIT Completed 200 OK in 18ms (Views: 0.5ms | ActiveRecord: 1.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e83c491f-7c1f-4bb0-b616-101ee6a714fd"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.0ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:13.892806"], ["updated_at", "2015-11-17 19:21:13.892806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:13.923483"], ["updated_at", "2015-11-17 19:21:13.923483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:13.953112"], ["updated_at", "2015-11-17 19:21:13.953112"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:13.977053"], ["updated_at", "2015-11-17 19:21:13.977053"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.000173"], ["updated_at", "2015-11-17 19:21:14.000173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.022484"], ["updated_at", "2015-11-17 19:21:14.022484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7804934c-dc55-45ce-9a78-f6f8fdcf762a"], ["created_at", "2015-11-17 19:21:14.028306"], ["updated_at", "2015-11-17 19:21:14.028306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "7804934c-dc55-45ce-9a78-f6f8fdcf762a"], ["created_at", "2015-11-17 19:21:14.033696"], ["updated_at", "2015-11-17 19:21:14.033696"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.047277"], ["updated_at", "2015-11-17 19:21:14.047277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "37ed72bb-b5b6-4ae7-b2b3-822216ddcac1"], ["created_at", "2015-11-17 19:21:14.056064"], ["updated_at", "2015-11-17 19:21:14.056064"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.075345"], ["updated_at", "2015-11-17 19:21:14.075345"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.098837"], ["updated_at", "2015-11-17 19:21:14.098837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-17 19:21:14.117820"], ["updated_at", "2015-11-17 19:21:14.117820"]] SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b6957cc1-4f96-45ce-b638-c293c6392992"], ["created_at", "2015-11-17 19:21:14.119585"], ["updated_at", "2015-11-17 19:21:14.119585"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.212742"], ["updated_at", "2015-11-17 19:21:14.212742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.216064"], ["updated_at", "2015-11-17 19:21:14.216064"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.231970"], ["updated_at", "2015-11-17 19:21:14.231970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (1.3ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.272316"], ["updated_at", "2015-11-17 19:21:14.272316"]]  (0.5ms) COMMIT  (0.3ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1ea62a1e-653f-40fd-8880-bb445056517e"], ["created_at", "2015-11-17 19:21:14.278607"], ["updated_at", "2015-11-17 19:21:14.278607"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.326505"], ["updated_at", "2015-11-17 19:21:14.326505"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9ab6117a-5139-44e2-af4f-cf159039c3cf"], ["created_at", "2015-11-17 19:21:14.336155"], ["updated_at", "2015-11-17 19:21:14.336155"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/7a170a62-fe6b-4f9d-977d-176092c053c1" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"7a170a62-fe6b-4f9d-977d-176092c053c1"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "7a170a62-fe6b-4f9d-977d-176092c053c1"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "9ab6117a-5139-44e2-af4f-cf159039c3cf"]] Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.402524"], ["updated_at", "2015-11-17 19:21:14.402524"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"5b0684b6-8e41-4b5d-83da-9fca8e5b483c"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5b0684b6-8e41-4b5d-83da-9fca8e5b483c"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "5b0684b6-8e41-4b5d-83da-9fca8e5b483c"], ["created_at", "2015-11-17 19:21:14.414548"], ["updated_at", "2015-11-17 19:21:14.414548"]]  (0.3ms) COMMIT Completed 201 Created in 13ms (Views: 0.4ms | ActiveRecord: 2.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.434580"], ["updated_at", "2015-11-17 19:21:14.434580"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"349a7bd3-baa4-40c3-9b5d-aba7ad6da170"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "349a7bd3-baa4-40c3-9b5d-aba7ad6da170"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 9ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.465140"], ["updated_at", "2015-11-17 19:21:14.465140"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ba00c0d5-fc54-41dc-976e-e6a98a31cc6c"], ["created_at", "2015-11-17 19:21:14.470967"], ["updated_at", "2015-11-17 19:21:14.470967"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/272739f0-e284-4e83-86fb-54d0fb90ecc9" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"272739f0-e284-4e83-86fb-54d0fb90ecc9"}  (0.1ms) BEGIN Strain::Article Load (0.8ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "272739f0-e284-4e83-86fb-54d0fb90ecc9"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "272739f0-e284-4e83-86fb-54d0fb90ecc9"]]  (0.3ms) COMMIT Completed 204 No Content in 5ms (Views: 0.1ms | ActiveRecord: 1.6ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.495157"], ["updated_at", "2015-11-17 19:21:14.495157"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "58d20dfc-e47a-433a-a42f-6f50626f2dfc"], ["created_at", "2015-11-17 19:21:14.500992"], ["updated_at", "2015-11-17 19:21:14.500992"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/fd15b181-6cee-4277-bc64-24a2f393bc1f" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"fd15b181-6cee-4277-bc64-24a2f393bc1f", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"fd15b181-6cee-4277-bc64-24a2f393bc1f"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "fd15b181-6cee-4277-bc64-24a2f393bc1f"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "58d20dfc-e47a-433a-a42f-6f50626f2dfc"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'fd15b181-6cee-4277-bc64-24a2f393bc1f') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-17 19:21:14.510593"], ["id", "fd15b181-6cee-4277-bc64-24a2f393bc1f"]]  (0.6ms) COMMIT Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "fd15b181-6cee-4277-bc64-24a2f393bc1f"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.535661"], ["updated_at", "2015-11-17 19:21:14.535661"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.561006"], ["updated_at", "2015-11-17 19:21:14.561006"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/4d897ecf-3feb-4f68-926a-7868b88f81f2" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"4d897ecf-3feb-4f68-926a-7868b88f81f2"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "4d897ecf-3feb-4f68-926a-7868b88f81f2"]] Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-17 19:21:14.588618"], ["updated_at", "2015-11-17 19:21:14.588618"]]  (0.5ms) COMMIT Completed 201 Created in 14ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.607294"], ["updated_at", "2015-11-17 19:21:14.607294"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/c3455cf0-d722-465c-a612-782e0dc5794f" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"c3455cf0-d722-465c-a612-782e0dc5794f"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "c3455cf0-d722-465c-a612-782e0dc5794f"]] SQL (0.2ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "c3455cf0-d722-465c-a612-782e0dc5794f"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:14.630549"], ["updated_at", "2015-11-17 19:21:14.630549"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/271456e1-857e-4b3b-af00-47cb33b74785" for 127.0.0.1 at 2015-11-17 14:21:14 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"271456e1-857e-4b3b-af00-47cb33b74785", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"271456e1-857e-4b3b-af00-47cb33b74785"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "271456e1-857e-4b3b-af00-47cb33b74785"]] Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '271456e1-857e-4b3b-af00-47cb33b74785') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-17 19:21:14.646684"], ["id", "271456e1-857e-4b3b-af00-47cb33b74785"]]  (0.5ms) COMMIT Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 1.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "271456e1-857e-4b3b-af00-47cb33b74785"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN Strain::Variant Exists (0.9ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:46.509567"], ["updated_at", "2015-11-17 19:21:46.509567"]]  (3.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.9ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "54a26c11-f6bc-4018-aab7-6a25d17f32ac"], ["created_at", "2015-11-17 19:21:46.526907"], ["updated_at", "2015-11-17 19:21:46.526907"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:21:46 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.0ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:46.571985"], ["updated_at", "2015-11-17 19:21:46.571985"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ec360c43-6f1b-4d4c-9685-a9858fc663e7"], ["created_at", "2015-11-17 19:21:46.581369"], ["updated_at", "2015-11-17 19:21:46.581369"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/057e39a8-1b08-4f9f-8095-e786b1876207" for 127.0.0.1 at 2015-11-17 14:21:46 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"057e39a8-1b08-4f9f-8095-e786b1876207"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "057e39a8-1b08-4f9f-8095-e786b1876207"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ec360c43-6f1b-4d4c-9685-a9858fc663e7"]] Completed 200 OK in 14ms (Views: 0.7ms | ActiveRecord: 0.7ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:46.623713"], ["updated_at", "2015-11-17 19:21:46.623713"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-17 14:21:46 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"88298269-aa19-4256-a195-44ce472ac8a2"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "88298269-aa19-4256-a195-44ce472ac8a2"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "88298269-aa19-4256-a195-44ce472ac8a2"], ["created_at", "2015-11-17 19:21:46.637250"], ["updated_at", "2015-11-17 19:21:46.637250"]]  (0.5ms) COMMIT Completed 201 Created in 17ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.5ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:46.662468"], ["updated_at", "2015-11-17 19:21:46.662468"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-17 14:21:46 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"3bbebaee-a7cc-4209-b08c-b9d27dca8a48"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "3bbebaee-a7cc-4209-b08c-b9d27dca8a48"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:46.689909"], ["updated_at", "2015-11-17 19:21:46.689909"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "9aa5b407-7fb2-4e32-8588-c9d94081facf"], ["created_at", "2015-11-17 19:21:46.696261"], ["updated_at", "2015-11-17 19:21:46.696261"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/44cb27ec-7c9b-4e1f-9dbe-4935bff4b5de" for 127.0.0.1 at 2015-11-17 14:21:46 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"44cb27ec-7c9b-4e1f-9dbe-4935bff4b5de"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "44cb27ec-7c9b-4e1f-9dbe-4935bff4b5de"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "44cb27ec-7c9b-4e1f-9dbe-4935bff4b5de"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:46.718901"], ["updated_at", "2015-11-17 19:21:46.718901"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "74af3b2e-f93a-4025-b404-a9eb43fa6067"], ["created_at", "2015-11-17 19:21:46.728171"], ["updated_at", "2015-11-17 19:21:46.728171"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/62ad67d4-0d61-4fe1-9b1d-f29a0791aef9" for 127.0.0.1 at 2015-11-17 14:21:46 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"62ad67d4-0d61-4fe1-9b1d-f29a0791aef9", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"62ad67d4-0d61-4fe1-9b1d-f29a0791aef9"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "62ad67d4-0d61-4fe1-9b1d-f29a0791aef9"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "74af3b2e-f93a-4025-b404-a9eb43fa6067"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '62ad67d4-0d61-4fe1-9b1d-f29a0791aef9') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-17 19:21:46.739834"], ["id", "62ad67d4-0d61-4fe1-9b1d-f29a0791aef9"]]  (0.4ms) COMMIT Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "62ad67d4-0d61-4fe1-9b1d-f29a0791aef9"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.0ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:51.844727"], ["updated_at", "2015-11-17 19:21:51.844727"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:51.873643"], ["updated_at", "2015-11-17 19:21:51.873643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:51.901009"], ["updated_at", "2015-11-17 19:21:51.901009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:51.921114"], ["updated_at", "2015-11-17 19:21:51.921114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:51.943935"], ["updated_at", "2015-11-17 19:21:51.943935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:51.961005"], ["updated_at", "2015-11-17 19:21:51.961005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "89750ed1-1686-410b-b685-04778a455f83"], ["created_at", "2015-11-17 19:21:51.970520"], ["updated_at", "2015-11-17 19:21:51.970520"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "89750ed1-1686-410b-b685-04778a455f83"], ["created_at", "2015-11-17 19:21:51.976465"], ["updated_at", "2015-11-17 19:21:51.976465"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_articles_on_slug" DETAIL: Key (slug)=(test-article) already exists. : INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:51.990666"], ["updated_at", "2015-11-17 19:21:51.990666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ea8254be-f000-474c-b4d5-70532829b249"], ["created_at", "2015-11-17 19:21:51.998174"], ["updated_at", "2015-11-17 19:21:51.998174"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.019055"], ["updated_at", "2015-11-17 19:21:52.019055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.040657"], ["updated_at", "2015-11-17 19:21:52.040657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-17 19:21:52.060019"], ["updated_at", "2015-11-17 19:21:52.060019"]] SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f1c9f271-3907-4b42-812c-4782571d319e"], ["created_at", "2015-11-17 19:21:52.063245"], ["updated_at", "2015-11-17 19:21:52.063245"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.146186"], ["updated_at", "2015-11-17 19:21:52.146186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.149528"], ["updated_at", "2015-11-17 19:21:52.149528"]] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_strain_variants_on_name" DETAIL: Key (name)=(test) already exists. : INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.167309"], ["updated_at", "2015-11-17 19:21:52.167309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.204598"], ["updated_at", "2015-11-17 19:21:52.204598"]]  (0.7ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b2eefea3-6709-4f31-8e47-8956dfd6800e"], ["created_at", "2015-11-17 19:21:52.213946"], ["updated_at", "2015-11-17 19:21:52.213946"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.259822"], ["updated_at", "2015-11-17 19:21:52.259822"]]  (0.6ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "286c02a6-c87c-4c4a-8188-5ef21c9aa8ec"], ["created_at", "2015-11-17 19:21:52.267044"], ["updated_at", "2015-11-17 19:21:52.267044"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/46e5b556-567a-4771-8ad6-79685bb4606b" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"46e5b556-567a-4771-8ad6-79685bb4606b"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "46e5b556-567a-4771-8ad6-79685bb4606b"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "286c02a6-c87c-4c4a-8188-5ef21c9aa8ec"]] Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.311188"], ["updated_at", "2015-11-17 19:21:52.311188"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"c902144d-6a4a-4ec7-ab1a-285103397eba"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "c902144d-6a4a-4ec7-ab1a-285103397eba"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "c902144d-6a4a-4ec7-ab1a-285103397eba"], ["created_at", "2015-11-17 19:21:52.321265"], ["updated_at", "2015-11-17 19:21:52.321265"]]  (0.6ms) COMMIT Completed 201 Created in 13ms (Views: 1.0ms | ActiveRecord: 1.8ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.347400"], ["updated_at", "2015-11-17 19:21:52.347400"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"57a22030-4d1f-4499-97f0-f139d40f9a87"}}}}, :controller=>"strain/jsonapi/articles", :action=>"create"}  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "57a22030-4d1f-4499-97f0-f139d40f9a87"]] Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 12ms (Views: 0.5ms | ActiveRecord: 1.6ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.391782"], ["updated_at", "2015-11-17 19:21:52.391782"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "acee4b6f-f96f-4b30-b46d-6521c700e975"], ["created_at", "2015-11-17 19:21:52.398747"], ["updated_at", "2015-11-17 19:21:52.398747"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/cc1f45c1-2e00-43cb-a0ff-9644e79876d8" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"cc1f45c1-2e00-43cb-a0ff-9644e79876d8"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "cc1f45c1-2e00-43cb-a0ff-9644e79876d8"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "cc1f45c1-2e00-43cb-a0ff-9644e79876d8"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.424674"], ["updated_at", "2015-11-17 19:21:52.424674"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "5072084d-3684-443b-a5a6-3ab0b731d4e0"], ["created_at", "2015-11-17 19:21:52.431094"], ["updated_at", "2015-11-17 19:21:52.431094"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/articles/5cca3ea6-ba4e-4064-91b1-b7e178d30958" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"5cca3ea6-ba4e-4064-91b1-b7e178d30958", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, :controller=>"strain/jsonapi/articles", :action=>"update", :id=>"5cca3ea6-ba4e-4064-91b1-b7e178d30958"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "5cca3ea6-ba4e-4064-91b1-b7e178d30958"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "5072084d-3684-443b-a5a6-3ab0b731d4e0"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '5cca3ea6-ba4e-4064-91b1-b7e178d30958') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-17 19:21:52.441918"], ["id", "5cca3ea6-ba4e-4064-91b1-b7e178d30958"]]  (0.4ms) COMMIT Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "5cca3ea6-ba4e-4064-91b1-b7e178d30958"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.465157"], ["updated_at", "2015-11-17 19:21:52.465157"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.5ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.489203"], ["updated_at", "2015-11-17 19:21:52.489203"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants/da0ffc90-409a-4d6f-a58e-b1a326e8c3af" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"da0ffc90-409a-4d6f-a58e-b1a326e8c3af"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "da0ffc90-409a-4d6f-a58e-b1a326e8c3af"]] Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}, :controller=>"strain/jsonapi/variants", :action=>"create"}  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-17 19:21:52.515891"], ["updated_at", "2015-11-17 19:21:52.515891"]]  (0.3ms) COMMIT Completed 201 Created in 15ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.534519"], ["updated_at", "2015-11-17 19:21:52.534519"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/variants/a16d3d6c-f00d-48f2-823f-ed874e3fb649" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"a16d3d6c-f00d-48f2-823f-ed874e3fb649"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "a16d3d6c-f00d-48f2-823f-ed874e3fb649"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "a16d3d6c-f00d-48f2-823f-ed874e3fb649"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 19:21:52.557425"], ["updated_at", "2015-11-17 19:21:52.557425"]]  (0.5ms) COMMIT Started PATCH "/jsonapi/variants/3178b132-db34-42df-904a-c9efd867845a" for 127.0.0.1 at 2015-11-17 14:21:52 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"3178b132-db34-42df-904a-c9efd867845a", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, :controller=>"strain/jsonapi/variants", :action=>"update", :id=>"3178b132-db34-42df-904a-c9efd867845a"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "3178b132-db34-42df-904a-c9efd867845a"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '3178b132-db34-42df-904a-c9efd867845a') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-17 19:21:52.576780"], ["id", "3178b132-db34-42df-904a-c9efd867845a"]]  (0.5ms) COMMIT Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 1.9ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "3178b132-db34-42df-904a-c9efd867845a"]]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (3.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (2.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.038259"], ["updated_at", "2015-11-17 22:55:22.038259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.070732"], ["updated_at", "2015-11-17 22:55:22.070732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.095519"], ["updated_at", "2015-11-17 22:55:22.095519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.132732"], ["updated_at", "2015-11-17 22:55:22.132732"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.150693"], ["updated_at", "2015-11-17 22:55:22.150693"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.171705"], ["updated_at", "2015-11-17 22:55:22.171705"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1392eabd-f102-42c8-bb93-7c93b3c5373a"], ["created_at", "2015-11-17 22:55:22.177337"], ["updated_at", "2015-11-17 22:55:22.177337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1392eabd-f102-42c8-bb93-7c93b3c5373a"], ["created_at", "2015-11-17 22:55:22.182572"], ["updated_at", "2015-11-17 22:55:22.182572"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.196423"], ["updated_at", "2015-11-17 22:55:22.196423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "b8c61d3f-2db0-4513-911a-1eefd992d9ec"], ["created_at", "2015-11-17 22:55:22.204785"], ["updated_at", "2015-11-17 22:55:22.204785"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.223288"], ["updated_at", "2015-11-17 22:55:22.223288"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.244655"], ["updated_at", "2015-11-17 22:55:22.244655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-17 22:55:22.269412"], ["updated_at", "2015-11-17 22:55:22.269412"]] SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2230d98b-270c-4283-a634-87f377d34d5f"], ["created_at", "2015-11-17 22:55:22.271313"], ["updated_at", "2015-11-17 22:55:22.271313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.344884"], ["updated_at", "2015-11-17 22:55:22.344884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.347734"], ["updated_at", "2015-11-17 22:55:22.347734"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.362247"], ["updated_at", "2015-11-17 22:55:22.362247"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.404346"], ["updated_at", "2015-11-17 22:55:22.404346"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6d705e3b-2a4e-4ef1-b86a-30e1573eafbb"], ["created_at", "2015-11-17 22:55:22.413547"], ["updated_at", "2015-11-17 22:55:22.413547"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_articles" SQL (0.6ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.482302"], ["updated_at", "2015-11-17 22:55:22.482302"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "ca477822-be50-4df5-ac6f-8a0320532131"], ["created_at", "2015-11-17 22:55:22.487737"], ["updated_at", "2015-11-17 22:55:22.487737"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/526e9658-c635-42e4-82da-c0b6b245473c" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"526e9658-c635-42e4-82da-c0b6b245473c"} Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "526e9658-c635-42e4-82da-c0b6b245473c"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ca477822-be50-4df5-ac6f-8a0320532131"]] Completed 200 OK in 24ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.546745"], ["updated_at", "2015-11-17 22:55:22.546745"]]  (0.5ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"2b08f061-4021-43a7-90ee-cfad9304b12d"}}}}}  (0.2ms) BEGIN Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "2b08f061-4021-43a7-90ee-cfad9304b12d"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "2b08f061-4021-43a7-90ee-cfad9304b12d"], ["created_at", "2015-11-17 22:55:22.562764"], ["updated_at", "2015-11-17 22:55:22.562764"]]  (0.4ms) COMMIT Completed 201 Created in 27ms (Views: 0.8ms | ActiveRecord: 2.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.597494"], ["updated_at", "2015-11-17 22:55:22.597494"]]  (0.3ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"83c03f4b-b584-43a0-b658-8dbc050d0ca3"}}}}}  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "83c03f4b-b584-43a0-b658-8dbc050d0ca3"]] Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.631589"], ["updated_at", "2015-11-17 22:55:22.631589"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "566c3ce5-54df-4dae-85fa-cf0e191b6d05"], ["created_at", "2015-11-17 22:55:22.638641"], ["updated_at", "2015-11-17 22:55:22.638641"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/articles/d8fc1dba-d461-453e-9aee-e1b51662d45f" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"d8fc1dba-d461-453e-9aee-e1b51662d45f"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "d8fc1dba-d461-453e-9aee-e1b51662d45f"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "d8fc1dba-d461-453e-9aee-e1b51662d45f"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.1ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.667474"], ["updated_at", "2015-11-17 22:55:22.667474"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "78b5e1bf-215a-4696-9a36-2d32659a866b"], ["created_at", "2015-11-17 22:55:22.673007"], ["updated_at", "2015-11-17 22:55:22.673007"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/be769c3c-0808-4b75-a002-7d5d5252f3cd" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"be769c3c-0808-4b75-a002-7d5d5252f3cd", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, "id"=>"be769c3c-0808-4b75-a002-7d5d5252f3cd"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "be769c3c-0808-4b75-a002-7d5d5252f3cd"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "78b5e1bf-215a-4696-9a36-2d32659a866b"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'be769c3c-0808-4b75-a002-7d5d5252f3cd') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-17 22:55:22.685656"], ["id", "be769c3c-0808-4b75-a002-7d5d5252f3cd"]]  (0.4ms) COMMIT Completed 200 OK in 20ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.7ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "be769c3c-0808-4b75-a002-7d5d5252f3cd"]]  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.6ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.719762"], ["updated_at", "2015-11-17 22:55:22.719762"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.766078"], ["updated_at", "2015-11-17 22:55:22.766078"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/e4441979-754c-485e-8e08-0da1b6f63dfe" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"e4441979-754c-485e-8e08-0da1b6f63dfe"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "e4441979-754c-485e-8e08-0da1b6f63dfe"]] Completed 200 OK in 16ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}}  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-17 22:55:22.811098"], ["updated_at", "2015-11-17 22:55:22.811098"]]  (0.6ms) COMMIT Completed 201 Created in 21ms (Views: 0.4ms | ActiveRecord: 1.5ms)  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.838829"], ["updated_at", "2015-11-17 22:55:22.838829"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/d6d3e8d8-c08f-4b17-b480-ba555b6a3abb" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"d6d3e8d8-c08f-4b17-b480-ba555b6a3abb"}  (0.2ms) BEGIN Strain::Variant Load (0.7ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "d6d3e8d8-c08f-4b17-b480-ba555b6a3abb"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "d6d3e8d8-c08f-4b17-b480-ba555b6a3abb"]]  (0.6ms) COMMIT Completed 204 No Content in 6ms (Views: 0.1ms | ActiveRecord: 1.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-17 22:55:22.867076"], ["updated_at", "2015-11-17 22:55:22.867076"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/d6a492f0-91f9-428e-a564-a14f10901e0d" for 127.0.0.1 at 2015-11-17 17:55:22 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"d6a492f0-91f9-428e-a564-a14f10901e0d", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, "id"=>"d6a492f0-91f9-428e-a564-a14f10901e0d"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "d6a492f0-91f9-428e-a564-a14f10901e0d"]] Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'd6a492f0-91f9-428e-a564-a14f10901e0d') LIMIT 1 SQL (0.7ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-17 22:55:22.890968"], ["id", "d6a492f0-91f9-428e-a564-a14f10901e0d"]]  (0.5ms) COMMIT Completed 200 OK in 30ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "d6a492f0-91f9-428e-a564-a14f10901e0d"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.427926"], ["updated_at", "2015-11-18 05:23:03.427926"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.0ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.462546"], ["updated_at", "2015-11-18 05:23:03.462546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.493124"], ["updated_at", "2015-11-18 05:23:03.493124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.521777"], ["updated_at", "2015-11-18 05:23:03.521777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.544905"], ["updated_at", "2015-11-18 05:23:03.544905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.570378"], ["updated_at", "2015-11-18 05:23:03.570378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "26f4ead1-772a-4913-ad87-2c449f879dd1"], ["created_at", "2015-11-18 05:23:03.576784"], ["updated_at", "2015-11-18 05:23:03.576784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "26f4ead1-772a-4913-ad87-2c449f879dd1"], ["created_at", "2015-11-18 05:23:03.582932"], ["updated_at", "2015-11-18 05:23:03.582932"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.598344"], ["updated_at", "2015-11-18 05:23:03.598344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d753e939-a5c4-4062-af43-3f3ed2386bb8"], ["created_at", "2015-11-18 05:23:03.604014"], ["updated_at", "2015-11-18 05:23:03.604014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.628206"], ["updated_at", "2015-11-18 05:23:03.628206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.647245"], ["updated_at", "2015-11-18 05:23:03.647245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-18 05:23:03.676310"], ["updated_at", "2015-11-18 05:23:03.676310"]] SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d13c749a-5749-4541-98ed-ec7abe309197"], ["created_at", "2015-11-18 05:23:03.679709"], ["updated_at", "2015-11-18 05:23:03.679709"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.764295"], ["updated_at", "2015-11-18 05:23:03.764295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.767559"], ["updated_at", "2015-11-18 05:23:03.767559"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.787370"], ["updated_at", "2015-11-18 05:23:03.787370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.836355"], ["updated_at", "2015-11-18 05:23:03.836355"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "4b90c2e6-1429-46c3-a259-c5af36c60a80"], ["created_at", "2015-11-18 05:23:03.842949"], ["updated_at", "2015-11-18 05:23:03.842949"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-18 00:23:03 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.906629"], ["updated_at", "2015-11-18 05:23:03.906629"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e751815f-dc23-4a2c-b9d5-e8bcf0869839"], ["created_at", "2015-11-18 05:23:03.916593"], ["updated_at", "2015-11-18 05:23:03.916593"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/fc2b4e24-5e58-431d-a9bd-d90780ce9ac7" for 127.0.0.1 at 2015-11-18 00:23:03 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"fc2b4e24-5e58-431d-a9bd-d90780ce9ac7"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "fc2b4e24-5e58-431d-a9bd-d90780ce9ac7"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e751815f-dc23-4a2c-b9d5-e8bcf0869839"]] Completed 200 OK in 25ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_articles" SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:03.976930"], ["updated_at", "2015-11-18 05:23:03.976930"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-18 00:23:03 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"1dec2057-fed1-442d-9215-ada287b4d91c"}}}}}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "1dec2057-fed1-442d-9215-ada287b4d91c"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.7ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "1dec2057-fed1-442d-9215-ada287b4d91c"], ["created_at", "2015-11-18 05:23:03.990054"], ["updated_at", "2015-11-18 05:23:03.990054"]]  (0.4ms) COMMIT Completed 201 Created in 22ms (Views: 0.7ms | ActiveRecord: 1.9ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:04.033951"], ["updated_at", "2015-11-18 05:23:04.033951"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-18 00:23:04 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"f37e29d4-3a57-41c7-a309-32f0239bc9c1"}}}}}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f37e29d4-3a57-41c7-a309-32f0239bc9c1"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.8ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:04.069962"], ["updated_at", "2015-11-18 05:23:04.069962"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e5a1acc0-d145-45ad-b3f4-4e2242e2aae3"], ["created_at", "2015-11-18 05:23:04.075685"], ["updated_at", "2015-11-18 05:23:04.075685"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/articles/13706cc4-8b99-4485-b532-831a650a7090" for 127.0.0.1 at 2015-11-18 00:23:04 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"13706cc4-8b99-4485-b532-831a650a7090"}  (0.2ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "13706cc4-8b99-4485-b532-831a650a7090"]] SQL (0.3ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "13706cc4-8b99-4485-b532-831a650a7090"]]  (0.6ms) COMMIT Completed 204 No Content in 5ms (Views: 0.3ms | ActiveRecord: 1.4ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "strain_articles"  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.3ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:04.108011"], ["updated_at", "2015-11-18 05:23:04.108011"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "55879bc6-bebd-430a-acdd-37b10d30d678"], ["created_at", "2015-11-18 05:23:04.114842"], ["updated_at", "2015-11-18 05:23:04.114842"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/d1820c16-54a2-46be-959d-9617724c2cfb" for 127.0.0.1 at 2015-11-18 00:23:04 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"d1820c16-54a2-46be-959d-9617724c2cfb", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, "id"=>"d1820c16-54a2-46be-959d-9617724c2cfb"}  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "d1820c16-54a2-46be-959d-9617724c2cfb"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "55879bc6-bebd-430a-acdd-37b10d30d678"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'd1820c16-54a2-46be-959d-9617724c2cfb') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-18 05:23:04.127618"], ["id", "d1820c16-54a2-46be-959d-9617724c2cfb"]]  (0.6ms) COMMIT Completed 200 OK in 20ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "d1820c16-54a2-46be-959d-9617724c2cfb"]]  (0.2ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:04.159249"], ["updated_at", "2015-11-18 05:23:04.159249"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-18 00:23:04 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:04.193923"], ["updated_at", "2015-11-18 05:23:04.193923"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants/9c6dc883-d67e-42cc-a765-22c13a83a5b6" for 127.0.0.1 at 2015-11-18 00:23:04 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"9c6dc883-d67e-42cc-a765-22c13a83a5b6"} Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "9c6dc883-d67e-42cc-a765-22c13a83a5b6"]] Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-18 00:23:04 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}}  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-18 05:23:04.235935"], ["updated_at", "2015-11-18 05:23:04.235935"]]  (0.4ms) COMMIT Completed 201 Created in 21ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:04.261159"], ["updated_at", "2015-11-18 05:23:04.261159"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/0f00e8c1-69e0-44f4-be4d-afd8a257b784" for 127.0.0.1 at 2015-11-18 00:23:04 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"0f00e8c1-69e0-44f4-be4d-afd8a257b784"}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "0f00e8c1-69e0-44f4-be4d-afd8a257b784"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "0f00e8c1-69e0-44f4-be4d-afd8a257b784"]]  (0.3ms) COMMIT Completed 204 No Content in 5ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-18 05:23:04.291008"], ["updated_at", "2015-11-18 05:23:04.291008"]]  (0.6ms) COMMIT Started PATCH "/jsonapi/variants/b778c2d7-7233-4141-8e93-d8a519b65725" for 127.0.0.1 at 2015-11-18 00:23:04 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"b778c2d7-7233-4141-8e93-d8a519b65725", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, "id"=>"b778c2d7-7233-4141-8e93-d8a519b65725"}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "b778c2d7-7233-4141-8e93-d8a519b65725"]] Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'b778c2d7-7233-4141-8e93-d8a519b65725') LIMIT 1 SQL (0.4ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-18 05:23:04.309622"], ["id", "b778c2d7-7233-4141-8e93-d8a519b65725"]]  (0.6ms) COMMIT Completed 200 OK in 27ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b778c2d7-7233-4141-8e93-d8a519b65725"]]  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (5.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.7ms) BEGIN  (3.0ms) SAVEPOINT active_record_1 Strain::Variant Exists (9.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (38.1ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.242799"], ["updated_at", "2015-11-20 13:23:26.242799"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.318427"], ["updated_at", "2015-11-20 13:23:26.318427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.343760"], ["updated_at", "2015-11-20 13:23:26.343760"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.366013"], ["updated_at", "2015-11-20 13:23:26.366013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.384577"], ["updated_at", "2015-11-20 13:23:26.384577"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.402734"], ["updated_at", "2015-11-20 13:23:26.402734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.6ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "61754991-ef65-408a-8147-efb4ebed183f"], ["created_at", "2015-11-20 13:23:26.408637"], ["updated_at", "2015-11-20 13:23:26.408637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (5.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "61754991-ef65-408a-8147-efb4ebed183f"], ["created_at", "2015-11-20 13:23:26.416993"], ["updated_at", "2015-11-20 13:23:26.416993"]]  (2.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.440623"], ["updated_at", "2015-11-20 13:23:26.440623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "80d4345c-92a7-45a0-9051-adfaa1d87186"], ["created_at", "2015-11-20 13:23:26.446463"], ["updated_at", "2015-11-20 13:23:26.446463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.466253"], ["updated_at", "2015-11-20 13:23:26.466253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.485587"], ["updated_at", "2015-11-20 13:23:26.485587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-20 13:23:26.508404"], ["updated_at", "2015-11-20 13:23:26.508404"]] SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "1cde477c-5cf9-42a9-bac7-d06de659fe55"], ["created_at", "2015-11-20 13:23:26.510918"], ["updated_at", "2015-11-20 13:23:26.510918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (5.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.589698"], ["updated_at", "2015-11-20 13:23:26.589698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.593167"], ["updated_at", "2015-11-20 13:23:26.593167"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.609864"], ["updated_at", "2015-11-20 13:23:26.609864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.655475"], ["updated_at", "2015-11-20 13:23:26.655475"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2320fe31-ce12-4a2c-b8ca-e48de1cbdf60"], ["created_at", "2015-11-20 13:23:26.662609"], ["updated_at", "2015-11-20 13:23:26.662609"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:23:26 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (4.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 16ms (Views: 0.5ms | ActiveRecord: 4.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.729334"], ["updated_at", "2015-11-20 13:23:26.729334"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "fc3bb9ad-9a14-48aa-b944-131e303795cf"], ["created_at", "2015-11-20 13:23:26.735155"], ["updated_at", "2015-11-20 13:23:26.735155"]]  (0.4ms) COMMIT Started GET "/jsonapi/articles/afb0e94a-ce82-4658-a522-b9bd5c288d80" for 127.0.0.1 at 2015-11-20 08:23:26 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"afb0e94a-ce82-4658-a522-b9bd5c288d80"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "afb0e94a-ce82-4658-a522-b9bd5c288d80"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fc3bb9ad-9a14-48aa-b944-131e303795cf"]] Completed 200 OK in 30ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.803058"], ["updated_at", "2015-11-20 13:23:26.803058"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-20 08:23:26 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"ddcbd29a-e7d2-41c5-bd43-bf4e15136fa3"}}}}}  (0.2ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ddcbd29a-e7d2-41c5-bd43-bf4e15136fa3"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "ddcbd29a-e7d2-41c5-bd43-bf4e15136fa3"], ["created_at", "2015-11-20 13:23:26.825415"], ["updated_at", "2015-11-20 13:23:26.825415"]]  (0.3ms) COMMIT Completed 201 Created in 24ms (Views: 0.7ms | ActiveRecord: 2.0ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.861800"], ["updated_at", "2015-11-20 13:23:26.861800"]]  (0.6ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-20 08:23:26 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"447e1f9a-f91f-4344-b09e-5421380e9b10"}}}}}  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "447e1f9a-f91f-4344-b09e-5421380e9b10"]] Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.2ms) ROLLBACK Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.897954"], ["updated_at", "2015-11-20 13:23:26.897954"]]  (0.4ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "21b8594f-c4d7-4226-bdf6-eea25f37077d"], ["created_at", "2015-11-20 13:23:26.904063"], ["updated_at", "2015-11-20 13:23:26.904063"]]  (0.3ms) COMMIT Started DELETE "/jsonapi/articles/8974bdd1-1b6f-4f46-a818-2ce812734baa" for 127.0.0.1 at 2015-11-20 08:23:26 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"8974bdd1-1b6f-4f46-a818-2ce812734baa"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "8974bdd1-1b6f-4f46-a818-2ce812734baa"]] SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "8974bdd1-1b6f-4f46-a818-2ce812734baa"]]  (0.3ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.931180"], ["updated_at", "2015-11-20 13:23:26.931180"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "3105e745-fcc1-4f8f-8c94-dfca5c71995f"], ["created_at", "2015-11-20 13:23:26.937764"], ["updated_at", "2015-11-20 13:23:26.937764"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/articles/a1ca35fc-3336-422b-952d-811a1f304202" for 127.0.0.1 at 2015-11-20 08:23:26 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"a1ca35fc-3336-422b-952d-811a1f304202", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, "id"=>"a1ca35fc-3336-422b-952d-811a1f304202"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "a1ca35fc-3336-422b-952d-811a1f304202"]] Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "3105e745-fcc1-4f8f-8c94-dfca5c71995f"]] Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != 'a1ca35fc-3336-422b-952d-811a1f304202') LIMIT 1 SQL (0.5ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-20 13:23:26.954765"], ["id", "a1ca35fc-3336-422b-952d-811a1f304202"]]  (0.4ms) COMMIT Completed 200 OK in 25ms (Views: 0.5ms | ActiveRecord: 2.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "a1ca35fc-3336-422b-952d-811a1f304202"]]  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (1.6ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:26.987814"], ["updated_at", "2015-11-20 13:23:26.987814"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:23:26 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:27.035780"], ["updated_at", "2015-11-20 13:23:27.035780"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/0ec7f24e-e226-458d-a798-2f08e374638c" for 127.0.0.1 at 2015-11-20 08:23:27 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"0ec7f24e-e226-458d-a798-2f08e374638c"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "0ec7f24e-e226-458d-a798-2f08e374638c"]] Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:23:27 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}}  (0.2ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-20 13:23:27.082338"], ["updated_at", "2015-11-20 13:23:27.082338"]]  (0.3ms) COMMIT Completed 201 Created in 23ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:27.113559"], ["updated_at", "2015-11-20 13:23:27.113559"]]  (0.5ms) COMMIT Started DELETE "/jsonapi/variants/e39a4913-fc9d-4ada-bf2c-15e16afea5fb" for 127.0.0.1 at 2015-11-20 08:23:27 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"e39a4913-fc9d-4ada-bf2c-15e16afea5fb"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "e39a4913-fc9d-4ada-bf2c-15e16afea5fb"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "e39a4913-fc9d-4ada-bf2c-15e16afea5fb"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:23:27.140665"], ["updated_at", "2015-11-20 13:23:27.140665"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/variants/e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e" for 127.0.0.1 at 2015-11-20 08:23:27 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, "id"=>"e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e') LIMIT 1 SQL (0.3ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-20 13:23:27.161195"], ["id", "e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e"]]  (0.3ms) COMMIT Completed 200 OK in 26ms (Views: 0.5ms | ActiveRecord: 1.7ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e"]]  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (3.7ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:33.709326"], ["updated_at", "2015-11-20 13:31:33.709326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:33.738382"], ["updated_at", "2015-11-20 13:31:33.738382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:33.763426"], ["updated_at", "2015-11-20 13:31:33.763426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:33.784446"], ["updated_at", "2015-11-20 13:31:33.784446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:33.804140"], ["updated_at", "2015-11-20 13:31:33.804140"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:33.823332"], ["updated_at", "2015-11-20 13:31:33.823332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.8ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d92c1ccd-af2c-4a20-8c22-5e5ff5d93650"], ["created_at", "2015-11-20 13:31:33.829199"], ["updated_at", "2015-11-20 13:31:33.829199"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "d92c1ccd-af2c-4a20-8c22-5e5ff5d93650"], ["created_at", "2015-11-20 13:31:33.837956"], ["updated_at", "2015-11-20 13:31:33.837956"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:33.853805"], ["updated_at", "2015-11-20 13:31:33.853805"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "846aa333-8379-4034-ae05-0266a2fbf05f"], ["created_at", "2015-11-20 13:31:33.859792"], ["updated_at", "2015-11-20 13:31:33.859792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:33.878619"], ["updated_at", "2015-11-20 13:31:33.878619"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:33.901651"], ["updated_at", "2015-11-20 13:31:33.901651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"default\":\"default Title\"}}}"], ["created_at", "2015-11-20 13:31:33.926742"], ["updated_at", "2015-11-20 13:31:33.926742"]] SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"title\":\"default Title\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "2007c4c7-cce2-4c10-80be-0e8663ba4549"], ["created_at", "2015-11-20 13:31:33.929242"], ["updated_at", "2015-11-20 13:31:33.929242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.008351"], ["updated_at", "2015-11-20 13:31:34.008351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.011353"], ["updated_at", "2015-11-20 13:31:34.011353"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.025394"], ["updated_at", "2015-11-20 13:31:34.025394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.065932"], ["updated_at", "2015-11-20 13:31:34.065932"]]  (0.5ms) COMMIT  (0.1ms) BEGIN Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f887edc5-4023-43d0-bdb5-562a707336b9"], ["created_at", "2015-11-20 13:31:34.072866"], ["updated_at", "2015-11-20 13:31:34.072866"]]  (0.4ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.138373"], ["updated_at", "2015-11-20 13:31:34.138373"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.5ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "e57e3cc4-40f3-4943-9c8c-3a35a07f873d"], ["created_at", "2015-11-20 13:31:34.147927"], ["updated_at", "2015-11-20 13:31:34.147927"]]  (0.6ms) COMMIT Started GET "/jsonapi/articles/a2b1905a-ef5e-4038-a894-e0813b10c898" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::ArticlesController#show as HTML Parameters: {"id"=>"a2b1905a-ef5e-4038-a894-e0813b10c898"} Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "a2b1905a-ef5e-4038-a894-e0813b10c898"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e57e3cc4-40f3-4943-9c8c-3a35a07f873d"]] Completed 200 OK in 30ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_articles" SQL (0.4ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.218438"], ["updated_at", "2015-11-20 13:31:34.218438"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"6a942c1b-258c-4b75-b1c6-6b52c1fd9457"}}}}}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6a942c1b-258c-4b75-b1c6-6b52c1fd9457"]] Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["title", "test title"], ["slug", "test-slug"], ["body", "{\"summary\":\"test_summary\",\"main\":\"test_main\"}"], ["variant_id", "6a942c1b-258c-4b75-b1c6-6b52c1fd9457"], ["created_at", "2015-11-20 13:31:34.239562"], ["updated_at", "2015-11-20 13:31:34.239562"]]  (0.4ms) COMMIT Completed 201 Created in 24ms (Views: 1.0ms | ActiveRecord: 1.8ms)  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.273573"], ["updated_at", "2015-11-20 13:31:34.273573"]]  (0.4ms) COMMIT Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::ArticlesController#create as API_JSON Parameters: {"data"=>{"type"=>"articles", "attributes"=>{"title"=>"test title", "slug"=>"test-slug", "body"=>{"summary"=>"test_summary", "main"=>"test_main", "extra_propert"=>"test"}}, "relationships"=>{"variant"=>{"data"=>{"type"=>"variants", "id"=>"f53fe724-f773-4f25-8fe4-4d9b2a6f9125"}}}}}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f53fe724-f773-4f25-8fe4-4d9b2a6f9125"]] Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1  (0.1ms) ROLLBACK Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.302990"], ["updated_at", "2015-11-20 13:31:34.302990"]]  (0.6ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "f1c882dd-c5a7-4375-90c3-444a455b99fc"], ["created_at", "2015-11-20 13:31:34.311641"], ["updated_at", "2015-11-20 13:31:34.311641"]]  (0.7ms) COMMIT Started DELETE "/jsonapi/articles/7d109877-5565-4975-a9cf-d8f4a7050ebc" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::ArticlesController#destroy as HTML Parameters: {"id"=>"7d109877-5565-4975-a9cf-d8f4a7050ebc"}  (0.2ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "7d109877-5565-4975-a9cf-d8f4a7050ebc"]] SQL (0.5ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "7d109877-5565-4975-a9cf-d8f4a7050ebc"]]  (0.5ms) COMMIT Completed 204 No Content in 5ms (Views: 0.3ms | ActiveRecord: 1.6ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "strain_articles"  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.2ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.342623"], ["updated_at", "2015-11-20 13:31:34.342623"]]  (0.5ms) COMMIT  (0.2ms) BEGIN Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "{\"summary\":\"this is a test article\",\"main\":\"This is the main article body.\"}"], ["slug", "test-article"], ["title", "Test Article"], ["variant_id", "6c82a4b4-25bc-4742-90e1-599d8ae6cced"], ["created_at", "2015-11-20 13:31:34.350396"], ["updated_at", "2015-11-20 13:31:34.350396"]]  (0.4ms) COMMIT Started PATCH "/jsonapi/articles/73541ac4-341a-4eca-81fe-73930b3dc402" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::ArticlesController#update as API_JSON Parameters: {"data"=>{"id"=>"73541ac4-341a-4eca-81fe-73930b3dc402", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, "id"=>"73541ac4-341a-4eca-81fe-73930b3dc402"}  (0.1ms) BEGIN Strain::Article Load (0.4ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1 [["id", "73541ac4-341a-4eca-81fe-73930b3dc402"]] Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6c82a4b4-25bc-4742-90e1-599d8ae6cced"]] Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE (LOWER("strain_articles"."slug") = LOWER('test-article') AND "strain_articles"."id" != '73541ac4-341a-4eca-81fe-73930b3dc402') LIMIT 1 SQL (0.4ms) UPDATE "strain_articles" SET "title" = $1, "updated_at" = $2 WHERE "strain_articles"."id" = $3 [["title", "updated"], ["updated_at", "2015-11-20 13:31:34.365082"], ["id", "73541ac4-341a-4eca-81fe-73930b3dc402"]]  (0.3ms) COMMIT Completed 200 OK in 22ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "73541ac4-341a-4eca-81fe-73930b3dc402"]]  (0.1ms) ROLLBACK SQL (0.6ms) DELETE FROM "strain_variants" SQL (0.4ms) DELETE FROM "strain_articles"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.398103"], ["updated_at", "2015-11-20 13:31:34.398103"]]  (0.5ms) COMMIT Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::VariantsController#index as HTML Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.2ms) BEGIN Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.438186"], ["updated_at", "2015-11-20 13:31:34.438186"]]  (0.3ms) COMMIT Started GET "/jsonapi/variants/6b9d08dc-46b4-4c17-ad7b-869a17466964" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::VariantsController#show as HTML Parameters: {"id"=>"6b9d08dc-46b4-4c17-ad7b-869a17466964"} Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "6b9d08dc-46b4-4c17-ad7b-869a17466964"]] Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.4ms)  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants" Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::VariantsController#create as API_JSON Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}}  (0.1ms) BEGIN Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\"}"], ["created_at", "2015-11-20 13:31:34.481568"], ["updated_at", "2015-11-20 13:31:34.481568"]]  (0.3ms) COMMIT Completed 201 Created in 23ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.508708"], ["updated_at", "2015-11-20 13:31:34.508708"]]  (0.4ms) COMMIT Started DELETE "/jsonapi/variants/0dcb519a-7e37-44aa-afa6-213b7e5182b5" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::VariantsController#destroy as HTML Parameters: {"id"=>"0dcb519a-7e37-44aa-afa6-213b7e5182b5"}  (0.2ms) BEGIN Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "0dcb519a-7e37-44aa-afa6-213b7e5182b5"]] SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "0dcb519a-7e37-44aa-afa6-213b7e5182b5"]]  (0.4ms) COMMIT Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "strain_variants"  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "strain_variants"  (0.1ms) BEGIN Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1 SQL (0.2ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "test"], ["schema", "{\"type\":\"object\",\"properties\":{\"summary\":{\"type\":\"string\"},\"main\":{\"type\":\"string\"}},\"additionalProperties\":false}"], ["created_at", "2015-11-20 13:31:34.537189"], ["updated_at", "2015-11-20 13:31:34.537189"]]  (0.3ms) COMMIT Started PATCH "/jsonapi/variants/24e27dda-cc29-492e-b3f8-d433a3038276" for 127.0.0.1 at 2015-11-20 08:31:34 -0500 Processing by Strain::Jsonapi::VariantsController#update as API_JSON Parameters: {"data"=>{"id"=>"24e27dda-cc29-492e-b3f8-d433a3038276", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, "id"=>"24e27dda-cc29-492e-b3f8-d433a3038276"}  (0.1ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 ORDER BY "strain_variants"."id" ASC LIMIT 1 [["id", "24e27dda-cc29-492e-b3f8-d433a3038276"]] Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '24e27dda-cc29-492e-b3f8-d433a3038276') LIMIT 1 SQL (0.8ms) UPDATE "strain_variants" SET "name" = $1, "updated_at" = $2 WHERE "strain_variants"."id" = $3 [["name", "updated"], ["updated_at", "2015-11-20 13:31:34.557303"], ["id", "24e27dda-cc29-492e-b3f8-d433a3038276"]]  (0.4ms) COMMIT Completed 200 OK in 27ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "24e27dda-cc29-492e-b3f8-d433a3038276"]]  (0.2ms) ROLLBACK SQL (0.7ms) DELETE FROM "strain_variants"