strain 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -40080,3 +40080,665 @@ Completed 200 OK in 27ms (Views: 0.5ms | ActiveRecord: 1.9ms)
40080
40080
  Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "b778c2d7-7233-4141-8e93-d8a519b65725"]]
40081
40081
   (0.1ms) ROLLBACK
40082
40082
  SQL (0.7ms) DELETE FROM "strain_variants"
40083
+ ActiveRecord::SchemaMigration Load (5.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
40084
+  (2.7ms) BEGIN
40085
+  (3.0ms) SAVEPOINT active_record_1
40086
+ Strain::Variant Exists (9.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40087
+ 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"]]
40088
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40089
+ Strain::Article Exists (1.1ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40090
+  (0.3ms) ROLLBACK
40091
+  (0.2ms) BEGIN
40092
+  (0.2ms) SAVEPOINT active_record_1
40093
+ Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40094
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40096
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1
40097
+  (0.1ms) ROLLBACK
40098
+  (0.2ms) BEGIN
40099
+  (0.1ms) SAVEPOINT active_record_1
40100
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40101
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40102
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40103
+ Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1
40104
+  (0.2ms) ROLLBACK
40105
+  (0.1ms) BEGIN
40106
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40107
+  (0.1ms) ROLLBACK
40108
+  (0.1ms) BEGIN
40109
+  (0.1ms) SAVEPOINT active_record_1
40110
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40111
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40113
+ Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40114
+  (0.1ms) ROLLBACK
40115
+  (0.1ms) BEGIN
40116
+  (0.1ms) SAVEPOINT active_record_1
40117
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40118
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40119
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40120
+ Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40121
+  (0.1ms) ROLLBACK
40122
+  (0.1ms) BEGIN
40123
+  (0.1ms) SAVEPOINT active_record_1
40124
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40125
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40127
+  (0.1ms) SAVEPOINT active_record_1
40128
+ Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40129
+ 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"]]
40130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40131
+  (0.3ms) SAVEPOINT active_record_1
40132
+ 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"]]
40133
+  (2.4ms) ROLLBACK TO SAVEPOINT active_record_1
40134
+  (0.2ms) ROLLBACK
40135
+  (0.1ms) BEGIN
40136
+  (0.1ms) SAVEPOINT active_record_1
40137
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40138
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40140
+  (0.1ms) SAVEPOINT active_record_1
40141
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40142
+ 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"]]
40143
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40144
+ Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40145
+  (0.3ms) ROLLBACK
40146
+  (0.1ms) BEGIN
40147
+  (0.1ms) SAVEPOINT active_record_1
40148
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40149
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40150
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40151
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40152
+  (0.2ms) ROLLBACK
40153
+  (0.1ms) BEGIN
40154
+  (0.2ms) SAVEPOINT active_record_1
40155
+ Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40156
+ SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40158
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40159
+  (0.1ms) ROLLBACK
40160
+  (0.1ms) BEGIN
40161
+  (0.1ms) SAVEPOINT active_record_1
40162
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40163
+ Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40164
+ SQL (0.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"]]
40165
+ 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"]]
40166
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40167
+  (0.1ms) ROLLBACK
40168
+  (0.1ms) BEGIN
40169
+ Strain::Variant Exists (5.2ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40170
+  (0.2ms) ROLLBACK
40171
+  (0.2ms) BEGIN
40172
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1
40173
+  (0.1ms) ROLLBACK
40174
+  (0.1ms) BEGIN
40175
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40176
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40177
+  (0.1ms) ROLLBACK
40178
+  (0.1ms) BEGIN
40179
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40180
+  (0.1ms) ROLLBACK
40181
+  (0.1ms) BEGIN
40182
+  (0.1ms) SAVEPOINT active_record_1
40183
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40184
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40186
+  (0.2ms) SAVEPOINT active_record_1
40187
+ 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"]]
40188
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
40189
+  (0.3ms) ROLLBACK
40190
+  (0.1ms) BEGIN
40191
+  (0.1ms) SAVEPOINT active_record_1
40192
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40193
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40195
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40196
+  (0.1ms) ROLLBACK
40197
+  (0.1ms) BEGIN
40198
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40199
+  (0.3ms) ROLLBACK
40200
+  (0.2ms) BEGIN
40201
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40202
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40203
+  (0.4ms) COMMIT
40204
+  (0.1ms) BEGIN
40205
+ Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40206
+ 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"]]
40207
+  (0.3ms) COMMIT
40208
+ Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:23:26 -0500
40209
+ Processing by Strain::Jsonapi::VariantsController#index as HTML
40210
+ Strain::Variant Load (4.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC
40211
+ Completed 200 OK in 16ms (Views: 0.5ms | ActiveRecord: 4.4ms)
40212
+  (0.2ms) BEGIN
40213
+  (0.1ms) ROLLBACK
40214
+  (0.1ms) BEGIN
40215
+  (0.1ms) ROLLBACK
40216
+  (0.1ms) BEGIN
40217
+  (0.3ms) SELECT COUNT(*) FROM "strain_articles"
40218
+  (0.1ms) ROLLBACK
40219
+ SQL (0.5ms) DELETE FROM "strain_articles"
40220
+ SQL (0.4ms) DELETE FROM "strain_variants"
40221
+  (0.1ms) BEGIN
40222
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40223
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40224
+  (0.5ms) COMMIT
40225
+  (0.1ms) BEGIN
40226
+ Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40227
+ SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"]]
40228
+  (0.4ms) COMMIT
40229
+ Started GET "/jsonapi/articles/afb0e94a-ce82-4658-a522-b9bd5c288d80" for 127.0.0.1 at 2015-11-20 08:23:26 -0500
40230
+ Processing by Strain::Jsonapi::ArticlesController#show as HTML
40231
+ Parameters: {"id"=>"afb0e94a-ce82-4658-a522-b9bd5c288d80"}
40232
+ 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"]]
40233
+ Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "fc3bb9ad-9a14-48aa-b944-131e303795cf"]]
40234
+ Completed 200 OK in 30ms (Views: 0.6ms | ActiveRecord: 0.8ms)
40235
+  (0.1ms) BEGIN
40236
+  (0.1ms) ROLLBACK
40237
+  (0.2ms) BEGIN
40238
+  (0.1ms) ROLLBACK
40239
+  (0.1ms) BEGIN
40240
+  (0.2ms) ROLLBACK
40241
+ SQL (0.5ms) DELETE FROM "strain_articles"
40242
+ SQL (0.4ms) DELETE FROM "strain_variants"
40243
+  (0.1ms) BEGIN
40244
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40245
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40246
+  (0.6ms) COMMIT
40247
+ Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-20 08:23:26 -0500
40248
+ Processing by Strain::Jsonapi::ArticlesController#create as API_JSON
40249
+ 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"}}}}}
40250
+  (0.2ms) BEGIN
40251
+ Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "ddcbd29a-e7d2-41c5-bd43-bf4e15136fa3"]]
40252
+ Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1
40253
+ 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"]]
40254
+  (0.3ms) COMMIT
40255
+ Completed 201 Created in 24ms (Views: 0.7ms | ActiveRecord: 2.0ms)
40256
+  (0.2ms) BEGIN
40257
+  (0.1ms) ROLLBACK
40258
+  (0.1ms) BEGIN
40259
+  (0.1ms) ROLLBACK
40260
+ SQL (0.5ms) DELETE FROM "strain_variants"
40261
+ SQL (0.4ms) DELETE FROM "strain_articles"
40262
+  (0.2ms) BEGIN
40263
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40264
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40265
+  (0.6ms) COMMIT
40266
+ Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-20 08:23:26 -0500
40267
+ Processing by Strain::Jsonapi::ArticlesController#create as API_JSON
40268
+ 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"}}}}}
40269
+  (0.2ms) BEGIN
40270
+ Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "447e1f9a-f91f-4344-b09e-5421380e9b10"]]
40271
+ Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1
40272
+  (0.2ms) ROLLBACK
40273
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.3ms)
40274
+  (0.1ms) BEGIN
40275
+  (0.1ms) ROLLBACK
40276
+  (0.1ms) BEGIN
40277
+  (0.1ms) ROLLBACK
40278
+ SQL (0.5ms) DELETE FROM "strain_variants"
40279
+ SQL (0.2ms) DELETE FROM "strain_articles"
40280
+  (0.1ms) BEGIN
40281
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40282
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40283
+  (0.4ms) COMMIT
40284
+  (0.1ms) BEGIN
40285
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40286
+ SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"]]
40287
+  (0.3ms) COMMIT
40288
+ Started DELETE "/jsonapi/articles/8974bdd1-1b6f-4f46-a818-2ce812734baa" for 127.0.0.1 at 2015-11-20 08:23:26 -0500
40289
+ Processing by Strain::Jsonapi::ArticlesController#destroy as HTML
40290
+ Parameters: {"id"=>"8974bdd1-1b6f-4f46-a818-2ce812734baa"}
40291
+  (0.2ms) BEGIN
40292
+ 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"]]
40293
+ SQL (0.2ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "8974bdd1-1b6f-4f46-a818-2ce812734baa"]]
40294
+  (0.3ms) COMMIT
40295
+ Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)
40296
+  (0.1ms) BEGIN
40297
+  (0.1ms) ROLLBACK
40298
+  (0.1ms) BEGIN
40299
+  (0.3ms) SELECT COUNT(*) FROM "strain_articles"
40300
+  (0.1ms) ROLLBACK
40301
+ SQL (0.5ms) DELETE FROM "strain_variants"
40302
+ SQL (0.2ms) DELETE FROM "strain_articles"
40303
+  (0.1ms) BEGIN
40304
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40305
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40306
+  (0.5ms) COMMIT
40307
+  (0.1ms) BEGIN
40308
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40309
+ SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"]]
40310
+  (0.3ms) COMMIT
40311
+ Started PATCH "/jsonapi/articles/a1ca35fc-3336-422b-952d-811a1f304202" for 127.0.0.1 at 2015-11-20 08:23:26 -0500
40312
+ Processing by Strain::Jsonapi::ArticlesController#update as API_JSON
40313
+ Parameters: {"data"=>{"id"=>"a1ca35fc-3336-422b-952d-811a1f304202", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, "id"=>"a1ca35fc-3336-422b-952d-811a1f304202"}
40314
+  (0.2ms) BEGIN
40315
+ 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"]]
40316
+ Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "3105e745-fcc1-4f8f-8c94-dfca5c71995f"]]
40317
+ 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
40318
+ 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"]]
40319
+  (0.4ms) COMMIT
40320
+ Completed 200 OK in 25ms (Views: 0.5ms | ActiveRecord: 2.6ms)
40321
+  (0.2ms) BEGIN
40322
+  (0.1ms) ROLLBACK
40323
+  (0.1ms) BEGIN
40324
+  (0.1ms) ROLLBACK
40325
+  (0.1ms) BEGIN
40326
+ Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "a1ca35fc-3336-422b-952d-811a1f304202"]]
40327
+  (0.1ms) ROLLBACK
40328
+ SQL (0.5ms) DELETE FROM "strain_variants"
40329
+ SQL (0.4ms) DELETE FROM "strain_articles"
40330
+  (0.1ms) BEGIN
40331
+ Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40332
+ 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"]]
40333
+  (0.5ms) COMMIT
40334
+ Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:23:26 -0500
40335
+ Processing by Strain::Jsonapi::VariantsController#index as HTML
40336
+ Strain::Variant Load (0.6ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC
40337
+ Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 0.6ms)
40338
+  (0.2ms) BEGIN
40339
+  (0.1ms) ROLLBACK
40340
+  (0.1ms) BEGIN
40341
+  (0.1ms) ROLLBACK
40342
+  (0.2ms) BEGIN
40343
+  (0.3ms) SELECT COUNT(*) FROM "strain_variants"
40344
+  (0.1ms) ROLLBACK
40345
+ SQL (0.4ms) DELETE FROM "strain_variants"
40346
+  (0.1ms) BEGIN
40347
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40348
+ 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"]]
40349
+  (0.3ms) COMMIT
40350
+ Started GET "/jsonapi/variants/0ec7f24e-e226-458d-a798-2f08e374638c" for 127.0.0.1 at 2015-11-20 08:23:27 -0500
40351
+ Processing by Strain::Jsonapi::VariantsController#show as HTML
40352
+ Parameters: {"id"=>"0ec7f24e-e226-458d-a798-2f08e374638c"}
40353
+ 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"]]
40354
+ Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 0.4ms)
40355
+  (0.2ms) BEGIN
40356
+  (0.1ms) ROLLBACK
40357
+  (0.1ms) BEGIN
40358
+  (0.1ms) ROLLBACK
40359
+  (0.1ms) BEGIN
40360
+  (0.1ms) ROLLBACK
40361
+ SQL (0.6ms) DELETE FROM "strain_variants"
40362
+ Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:23:27 -0500
40363
+ Processing by Strain::Jsonapi::VariantsController#create as API_JSON
40364
+ Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}}
40365
+  (0.2ms) BEGIN
40366
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40367
+ 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"]]
40368
+  (0.3ms) COMMIT
40369
+ Completed 201 Created in 23ms (Views: 0.4ms | ActiveRecord: 1.1ms)
40370
+  (0.2ms) BEGIN
40371
+  (0.1ms) ROLLBACK
40372
+  (0.1ms) BEGIN
40373
+  (0.1ms) ROLLBACK
40374
+ SQL (0.6ms) DELETE FROM "strain_variants"
40375
+  (0.1ms) BEGIN
40376
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40377
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40378
+  (0.5ms) COMMIT
40379
+ Started DELETE "/jsonapi/variants/e39a4913-fc9d-4ada-bf2c-15e16afea5fb" for 127.0.0.1 at 2015-11-20 08:23:27 -0500
40380
+ Processing by Strain::Jsonapi::VariantsController#destroy as HTML
40381
+ Parameters: {"id"=>"e39a4913-fc9d-4ada-bf2c-15e16afea5fb"}
40382
+  (0.2ms) BEGIN
40383
+ 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"]]
40384
+ SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "e39a4913-fc9d-4ada-bf2c-15e16afea5fb"]]
40385
+  (0.4ms) COMMIT
40386
+ Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)
40387
+  (0.2ms) BEGIN
40388
+  (0.2ms) ROLLBACK
40389
+  (0.1ms) BEGIN
40390
+  (0.3ms) SELECT COUNT(*) FROM "strain_variants"
40391
+  (0.1ms) ROLLBACK
40392
+ SQL (0.3ms) DELETE FROM "strain_variants"
40393
+  (0.1ms) BEGIN
40394
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40395
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40396
+  (0.4ms) COMMIT
40397
+ Started PATCH "/jsonapi/variants/e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e" for 127.0.0.1 at 2015-11-20 08:23:27 -0500
40398
+ Processing by Strain::Jsonapi::VariantsController#update as API_JSON
40399
+ Parameters: {"data"=>{"id"=>"e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, "id"=>"e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e"}
40400
+  (0.2ms) BEGIN
40401
+ 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"]]
40402
+ 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
40403
+ 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"]]
40404
+  (0.3ms) COMMIT
40405
+ Completed 200 OK in 26ms (Views: 0.5ms | ActiveRecord: 1.7ms)
40406
+  (0.2ms) BEGIN
40407
+  (0.1ms) ROLLBACK
40408
+  (0.2ms) BEGIN
40409
+  (0.2ms) ROLLBACK
40410
+  (0.1ms) BEGIN
40411
+ Strain::Variant Load (0.5ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e"]]
40412
+  (0.1ms) ROLLBACK
40413
+ SQL (0.7ms) DELETE FROM "strain_variants"
40414
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
40415
+  (0.1ms) BEGIN
40416
+  (0.2ms) SAVEPOINT active_record_1
40417
+ Strain::Variant Exists (1.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40418
+ 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"]]
40419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40420
+ Strain::Article Exists (0.8ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40421
+  (0.2ms) ROLLBACK
40422
+  (0.1ms) BEGIN
40423
+  (0.1ms) SAVEPOINT active_record_1
40424
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40425
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40427
+ Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1
40428
+  (0.2ms) ROLLBACK
40429
+  (0.1ms) BEGIN
40430
+  (0.1ms) SAVEPOINT active_record_1
40431
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40432
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40434
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1
40435
+  (0.1ms) ROLLBACK
40436
+  (0.3ms) BEGIN
40437
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40438
+  (0.1ms) ROLLBACK
40439
+  (0.1ms) BEGIN
40440
+  (0.1ms) SAVEPOINT active_record_1
40441
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40442
+ SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40444
+ Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40445
+  (0.1ms) ROLLBACK
40446
+  (0.2ms) BEGIN
40447
+  (0.2ms) SAVEPOINT active_record_1
40448
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40449
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40450
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40451
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40452
+  (0.1ms) ROLLBACK
40453
+  (0.1ms) BEGIN
40454
+  (0.2ms) SAVEPOINT active_record_1
40455
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40456
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40458
+  (0.1ms) SAVEPOINT active_record_1
40459
+ Strain::Article Exists (0.3ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40460
+ 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"]]
40461
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40462
+  (0.2ms) SAVEPOINT active_record_1
40463
+ 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"]]
40464
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
40465
+  (0.2ms) ROLLBACK
40466
+  (0.1ms) BEGIN
40467
+  (0.1ms) SAVEPOINT active_record_1
40468
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40469
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40470
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40471
+  (0.1ms) SAVEPOINT active_record_1
40472
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40473
+ SQL (0.3ms) INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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"]]
40474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40475
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40476
+  (0.2ms) ROLLBACK
40477
+  (0.1ms) BEGIN
40478
+  (0.1ms) SAVEPOINT active_record_1
40479
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40480
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40481
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40482
+ Strain::Article Exists (0.7ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40483
+  (0.2ms) ROLLBACK
40484
+  (0.2ms) BEGIN
40485
+  (0.2ms) SAVEPOINT active_record_1
40486
+ Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40487
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40489
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40490
+  (0.2ms) ROLLBACK
40491
+  (0.1ms) BEGIN
40492
+  (0.2ms) SAVEPOINT active_record_1
40493
+ Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40494
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40495
+ SQL (0.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"]]
40496
+ 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"]]
40497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40498
+  (0.1ms) ROLLBACK
40499
+  (0.1ms) BEGIN
40500
+ Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40501
+  (0.1ms) ROLLBACK
40502
+  (0.1ms) BEGIN
40503
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1
40504
+  (0.2ms) ROLLBACK
40505
+  (0.2ms) BEGIN
40506
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40507
+ Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40508
+  (0.2ms) ROLLBACK
40509
+  (0.1ms) BEGIN
40510
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40511
+  (0.1ms) ROLLBACK
40512
+  (0.1ms) BEGIN
40513
+  (0.1ms) SAVEPOINT active_record_1
40514
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40515
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40517
+  (0.1ms) SAVEPOINT active_record_1
40518
+ 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"]]
40519
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
40520
+  (0.1ms) ROLLBACK
40521
+  (0.1ms) BEGIN
40522
+  (0.1ms) SAVEPOINT active_record_1
40523
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40524
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40526
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40527
+  (0.1ms) ROLLBACK
40528
+  (0.1ms) BEGIN
40529
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40530
+  (0.2ms) ROLLBACK
40531
+  (0.1ms) BEGIN
40532
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40533
+ SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40534
+  (0.5ms) COMMIT
40535
+  (0.1ms) BEGIN
40536
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40537
+ 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"]]
40538
+  (0.4ms) COMMIT
40539
+ Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40540
+ Processing by Strain::Jsonapi::VariantsController#index as HTML
40541
+ Strain::Variant Load (1.1ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC
40542
+ Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.1ms)
40543
+  (0.2ms) BEGIN
40544
+  (0.1ms) ROLLBACK
40545
+  (0.1ms) BEGIN
40546
+  (0.1ms) ROLLBACK
40547
+  (0.1ms) BEGIN
40548
+  (0.3ms) SELECT COUNT(*) FROM "strain_articles"
40549
+  (0.1ms) ROLLBACK
40550
+ SQL (0.5ms) DELETE FROM "strain_articles"
40551
+ SQL (0.4ms) DELETE FROM "strain_variants"
40552
+  (0.1ms) BEGIN
40553
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40554
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40555
+  (0.6ms) COMMIT
40556
+  (0.2ms) BEGIN
40557
+ Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40558
+ 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"]]
40559
+  (0.6ms) COMMIT
40560
+ Started GET "/jsonapi/articles/a2b1905a-ef5e-4038-a894-e0813b10c898" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40561
+ Processing by Strain::Jsonapi::ArticlesController#show as HTML
40562
+ Parameters: {"id"=>"a2b1905a-ef5e-4038-a894-e0813b10c898"}
40563
+ 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"]]
40564
+ Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "e57e3cc4-40f3-4943-9c8c-3a35a07f873d"]]
40565
+ Completed 200 OK in 30ms (Views: 0.6ms | ActiveRecord: 0.8ms)
40566
+  (0.2ms) BEGIN
40567
+  (0.1ms) ROLLBACK
40568
+  (0.3ms) BEGIN
40569
+  (0.2ms) ROLLBACK
40570
+  (0.1ms) BEGIN
40571
+  (0.1ms) ROLLBACK
40572
+ SQL (0.5ms) DELETE FROM "strain_articles"
40573
+ SQL (0.4ms) DELETE FROM "strain_variants"
40574
+  (0.1ms) BEGIN
40575
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40576
+ 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"]]
40577
+  (0.4ms) COMMIT
40578
+ Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40579
+ Processing by Strain::Jsonapi::ArticlesController#create as API_JSON
40580
+ 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"}}}}}
40581
+  (0.2ms) BEGIN
40582
+ Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6a942c1b-258c-4b75-b1c6-6b52c1fd9457"]]
40583
+ Strain::Article Exists (0.6ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1
40584
+ 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"]]
40585
+  (0.4ms) COMMIT
40586
+ Completed 201 Created in 24ms (Views: 1.0ms | ActiveRecord: 1.8ms)
40587
+  (0.3ms) BEGIN
40588
+  (0.3ms) ROLLBACK
40589
+  (0.1ms) BEGIN
40590
+  (0.1ms) ROLLBACK
40591
+ SQL (0.4ms) DELETE FROM "strain_variants"
40592
+ SQL (0.4ms) DELETE FROM "strain_articles"
40593
+  (0.1ms) BEGIN
40594
+ Strain::Variant Exists (0.7ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40595
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40596
+  (0.4ms) COMMIT
40597
+ Started POST "/jsonapi/articles" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40598
+ Processing by Strain::Jsonapi::ArticlesController#create as API_JSON
40599
+ 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"}}}}}
40600
+  (0.1ms) BEGIN
40601
+ Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f53fe724-f773-4f25-8fe4-4d9b2a6f9125"]]
40602
+ Strain::Article Exists (0.4ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1
40603
+  (0.1ms) ROLLBACK
40604
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.0ms)
40605
+  (0.1ms) BEGIN
40606
+  (0.1ms) ROLLBACK
40607
+  (0.1ms) BEGIN
40608
+  (0.1ms) ROLLBACK
40609
+ SQL (0.5ms) DELETE FROM "strain_variants"
40610
+ SQL (0.2ms) DELETE FROM "strain_articles"
40611
+  (0.1ms) BEGIN
40612
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40613
+ 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"]]
40614
+  (0.6ms) COMMIT
40615
+  (0.2ms) BEGIN
40616
+ Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40617
+ 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"]]
40618
+  (0.7ms) COMMIT
40619
+ Started DELETE "/jsonapi/articles/7d109877-5565-4975-a9cf-d8f4a7050ebc" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40620
+ Processing by Strain::Jsonapi::ArticlesController#destroy as HTML
40621
+ Parameters: {"id"=>"7d109877-5565-4975-a9cf-d8f4a7050ebc"}
40622
+  (0.2ms) BEGIN
40623
+ 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"]]
40624
+ SQL (0.5ms) DELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1 [["id", "7d109877-5565-4975-a9cf-d8f4a7050ebc"]]
40625
+  (0.5ms) COMMIT
40626
+ Completed 204 No Content in 5ms (Views: 0.3ms | ActiveRecord: 1.6ms)
40627
+  (0.2ms) BEGIN
40628
+  (0.1ms) ROLLBACK
40629
+  (0.1ms) BEGIN
40630
+  (0.3ms) SELECT COUNT(*) FROM "strain_articles"
40631
+  (0.1ms) ROLLBACK
40632
+ SQL (0.6ms) DELETE FROM "strain_variants"
40633
+ SQL (0.2ms) DELETE FROM "strain_articles"
40634
+  (0.1ms) BEGIN
40635
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40636
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40637
+  (0.5ms) COMMIT
40638
+  (0.2ms) BEGIN
40639
+ Strain::Article Exists (0.5ms) SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
40640
+ 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"]]
40641
+  (0.4ms) COMMIT
40642
+ Started PATCH "/jsonapi/articles/73541ac4-341a-4eca-81fe-73930b3dc402" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40643
+ Processing by Strain::Jsonapi::ArticlesController#update as API_JSON
40644
+ Parameters: {"data"=>{"id"=>"73541ac4-341a-4eca-81fe-73930b3dc402", "type"=>"articles", "attributes"=>{"title"=>"updated"}}, "id"=>"73541ac4-341a-4eca-81fe-73930b3dc402"}
40645
+  (0.1ms) BEGIN
40646
+ 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"]]
40647
+ Strain::Variant Load (0.3ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6c82a4b4-25bc-4742-90e1-599d8ae6cced"]]
40648
+ 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
40649
+ 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"]]
40650
+  (0.3ms) COMMIT
40651
+ Completed 200 OK in 22ms (Views: 0.5ms | ActiveRecord: 2.1ms)
40652
+  (0.2ms) BEGIN
40653
+  (0.1ms) ROLLBACK
40654
+  (0.1ms) BEGIN
40655
+  (0.1ms) ROLLBACK
40656
+  (0.1ms) BEGIN
40657
+ Strain::Article Load (0.3ms) SELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1 [["id", "73541ac4-341a-4eca-81fe-73930b3dc402"]]
40658
+  (0.1ms) ROLLBACK
40659
+ SQL (0.6ms) DELETE FROM "strain_variants"
40660
+ SQL (0.4ms) DELETE FROM "strain_articles"
40661
+  (0.1ms) BEGIN
40662
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40663
+ 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"]]
40664
+  (0.5ms) COMMIT
40665
+ Started GET "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40666
+ Processing by Strain::Jsonapi::VariantsController#index as HTML
40667
+ Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC
40668
+ Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.4ms)
40669
+  (0.2ms) BEGIN
40670
+  (0.1ms) ROLLBACK
40671
+  (0.1ms) BEGIN
40672
+  (0.1ms) ROLLBACK
40673
+  (0.2ms) BEGIN
40674
+  (0.4ms) SELECT COUNT(*) FROM "strain_variants"
40675
+  (0.1ms) ROLLBACK
40676
+ SQL (0.5ms) DELETE FROM "strain_variants"
40677
+  (0.2ms) BEGIN
40678
+ Strain::Variant Exists (0.5ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40679
+ SQL (0.3ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40680
+  (0.3ms) COMMIT
40681
+ Started GET "/jsonapi/variants/6b9d08dc-46b4-4c17-ad7b-869a17466964" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40682
+ Processing by Strain::Jsonapi::VariantsController#show as HTML
40683
+ Parameters: {"id"=>"6b9d08dc-46b4-4c17-ad7b-869a17466964"}
40684
+ 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"]]
40685
+ Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.4ms)
40686
+  (0.3ms) BEGIN
40687
+  (0.2ms) ROLLBACK
40688
+  (0.2ms) BEGIN
40689
+  (0.2ms) ROLLBACK
40690
+  (0.2ms) BEGIN
40691
+  (0.2ms) ROLLBACK
40692
+ SQL (0.5ms) DELETE FROM "strain_variants"
40693
+ Started POST "/jsonapi/variants" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40694
+ Processing by Strain::Jsonapi::VariantsController#create as API_JSON
40695
+ Parameters: {"data"=>{"type"=>"variants", "attributes"=>{"name"=>"test", "schema"=>{"type"=>"object"}}}}
40696
+  (0.1ms) BEGIN
40697
+ Strain::Variant Exists (0.6ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40698
+ SQL (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"]]
40699
+  (0.3ms) COMMIT
40700
+ Completed 201 Created in 23ms (Views: 0.4ms | ActiveRecord: 1.3ms)
40701
+  (0.2ms) BEGIN
40702
+  (0.1ms) ROLLBACK
40703
+  (0.1ms) BEGIN
40704
+  (0.1ms) ROLLBACK
40705
+ SQL (0.5ms) DELETE FROM "strain_variants"
40706
+  (0.1ms) BEGIN
40707
+ Strain::Variant Exists (0.8ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40708
+ SQL (0.4ms) INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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"]]
40709
+  (0.4ms) COMMIT
40710
+ Started DELETE "/jsonapi/variants/0dcb519a-7e37-44aa-afa6-213b7e5182b5" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40711
+ Processing by Strain::Jsonapi::VariantsController#destroy as HTML
40712
+ Parameters: {"id"=>"0dcb519a-7e37-44aa-afa6-213b7e5182b5"}
40713
+  (0.2ms) BEGIN
40714
+ 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"]]
40715
+ SQL (0.3ms) DELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1 [["id", "0dcb519a-7e37-44aa-afa6-213b7e5182b5"]]
40716
+  (0.4ms) COMMIT
40717
+ Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)
40718
+  (0.1ms) BEGIN
40719
+  (0.1ms) ROLLBACK
40720
+  (0.1ms) BEGIN
40721
+  (0.4ms) SELECT COUNT(*) FROM "strain_variants"
40722
+  (0.1ms) ROLLBACK
40723
+ SQL (0.2ms) DELETE FROM "strain_variants"
40724
+  (0.1ms) BEGIN
40725
+ Strain::Variant Exists (0.4ms) SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
40726
+ 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"]]
40727
+  (0.3ms) COMMIT
40728
+ Started PATCH "/jsonapi/variants/24e27dda-cc29-492e-b3f8-d433a3038276" for 127.0.0.1 at 2015-11-20 08:31:34 -0500
40729
+ Processing by Strain::Jsonapi::VariantsController#update as API_JSON
40730
+ Parameters: {"data"=>{"id"=>"24e27dda-cc29-492e-b3f8-d433a3038276", "type"=>"variants", "attributes"=>{"name"=>"updated"}}, "id"=>"24e27dda-cc29-492e-b3f8-d433a3038276"}
40731
+  (0.1ms) BEGIN
40732
+ 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"]]
40733
+ 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
40734
+ 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"]]
40735
+  (0.4ms) COMMIT
40736
+ Completed 200 OK in 27ms (Views: 0.5ms | ActiveRecord: 2.2ms)
40737
+  (0.2ms) BEGIN
40738
+  (0.1ms) ROLLBACK
40739
+  (0.2ms) BEGIN
40740
+  (0.1ms) ROLLBACK
40741
+  (0.2ms) BEGIN
40742
+ Strain::Variant Load (0.4ms) SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "24e27dda-cc29-492e-b3f8-d433a3038276"]]
40743
+  (0.2ms) ROLLBACK
40744
+ SQL (0.7ms) DELETE FROM "strain_variants"