strain 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +0 -3
- data/README.md +4 -4
- data/app/controllers/strain/application_controller.rb +1 -0
- data/lib/strain/version.rb +1 -1
- data/spec/test_app/log/development.log +395 -0
- data/spec/test_app/log/test.log +662 -0
- data/spec/test_app/tmp/pids/server.pid +1 -0
- metadata +5 -4
data/spec/test_app/log/test.log
CHANGED
@@ -40080,3 +40080,665 @@ Completed 200 OK in 27ms (Views: 0.5ms | ActiveRecord: 1.9ms)
|
|
40080
40080
|
[1m[36mStrain::Variant Load (0.3ms)[0m [1mSELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1[0m [["id", "b778c2d7-7233-4141-8e93-d8a519b65725"]]
|
40081
40081
|
[1m[35m (0.1ms)[0m ROLLBACK
|
40082
40082
|
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40083
|
+
[1m[36mActiveRecord::SchemaMigration Load (5.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
40084
|
+
[1m[35m (2.7ms)[0m BEGIN
|
40085
|
+
[1m[36m (3.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
40086
|
+
[1m[35mStrain::Variant Exists (9.7ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40087
|
+
[1m[36mSQL (38.1ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
40089
|
+
[1m[36mStrain::Article Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40090
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
40091
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40092
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
40093
|
+
[1m[36mStrain::Variant Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40094
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40096
|
+
[1m[35mStrain::Article Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1
|
40097
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40098
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40099
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40100
|
+
[1m[35mStrain::Variant Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40101
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
40103
|
+
[1m[36mStrain::Article Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1[0m
|
40104
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40105
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40106
|
+
[1m[35mStrain::Article Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40107
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40108
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40109
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40110
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40111
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40113
|
+
[1m[36mStrain::Article Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40114
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40115
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40116
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
40117
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40118
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40120
|
+
[1m[35mStrain::Article Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40121
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40122
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40123
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40124
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40125
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40127
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40128
|
+
[1m[35mStrain::Article Exists (0.3ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40129
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40131
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
40132
|
+
[1m[35mSQL (5.8ms)[0m INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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
|
+
[1m[36m (2.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
40134
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40135
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40136
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
40137
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40138
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40140
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
40141
|
+
[1m[36mStrain::Article Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40142
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40144
|
+
[1m[35mStrain::Article Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40145
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
40146
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40147
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40148
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40149
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40151
|
+
[1m[36mStrain::Article Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40152
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40153
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40154
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
40155
|
+
[1m[36mStrain::Variant Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40156
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40158
|
+
[1m[35mStrain::Article Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40159
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40160
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40161
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40162
|
+
[1m[35mStrain::Article Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40163
|
+
[1m[36mStrain::Variant Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40164
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
40167
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40168
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40169
|
+
[1m[36mStrain::Variant Exists (5.2ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40170
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40171
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40172
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1
|
40173
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40174
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40175
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40176
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40177
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40178
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40179
|
+
[1m[36mStrain::Variant Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40180
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40181
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40182
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
40183
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40184
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40186
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
40187
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
40189
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
40190
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40191
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40192
|
+
[1m[35mStrain::Variant Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40193
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40195
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40196
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40197
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40198
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40199
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
40200
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40201
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40202
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
40204
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40205
|
+
[1m[36mStrain::Article Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40206
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mStrain::Variant Load (4.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40213
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40214
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40215
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40216
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40217
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "strain_articles"
|
40218
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40219
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "strain_articles"
|
40220
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40221
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40222
|
+
[1m[36mStrain::Variant Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40223
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
40225
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40226
|
+
[1m[36mStrain::Article Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40227
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mStrain::Article Load (0.4ms)[0m 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
|
+
[1m[36mStrain::Variant Load (0.4ms)[0m [1mSELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1[0m [["id", "fc3bb9ad-9a14-48aa-b944-131e303795cf"]]
|
40234
|
+
Completed 200 OK in 30ms (Views: 0.6ms | ActiveRecord: 0.8ms)
|
40235
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40236
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40237
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40238
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40239
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40240
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
40241
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "strain_articles"
|
40242
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40243
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40244
|
+
[1m[36mStrain::Variant Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40245
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40251
|
+
[1m[36mStrain::Variant Load (0.5ms)[0m [1mSELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1[0m [["id", "ddcbd29a-e7d2-41c5-bd43-bf4e15136fa3"]]
|
40252
|
+
[1m[35mStrain::Article Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1
|
40253
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.3ms)[0m COMMIT
|
40255
|
+
Completed 201 Created in 24ms (Views: 0.7ms | ActiveRecord: 2.0ms)
|
40256
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40257
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40258
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40259
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40260
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40261
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "strain_articles"
|
40262
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40263
|
+
[1m[35mStrain::Variant Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40264
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40270
|
+
[1m[35mStrain::Variant Load (0.4ms)[0m SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "447e1f9a-f91f-4344-b09e-5421380e9b10"]]
|
40271
|
+
[1m[36mStrain::Article Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1[0m
|
40272
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40273
|
+
Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.3ms)
|
40274
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40275
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40276
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40277
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40278
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40279
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "strain_articles"
|
40280
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40281
|
+
[1m[35mStrain::Variant Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40282
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.4ms)[0m COMMIT
|
40284
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40285
|
+
[1m[35mStrain::Article Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40286
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40292
|
+
[1m[35mStrain::Article Load (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1[0m [["id", "8974bdd1-1b6f-4f46-a818-2ce812734baa"]]
|
40294
|
+
[1m[35m (0.3ms)[0m COMMIT
|
40295
|
+
Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)
|
40296
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40297
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40298
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40299
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "strain_articles"
|
40300
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40301
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "strain_variants"
|
40302
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "strain_articles"[0m
|
40303
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40304
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40305
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
40307
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40308
|
+
[1m[36mStrain::Article Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40309
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40315
|
+
[1m[36mStrain::Article Load (0.4ms)[0m [1mSELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1[0m [["id", "a1ca35fc-3336-422b-952d-811a1f304202"]]
|
40316
|
+
[1m[35mStrain::Variant Load (0.4ms)[0m SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "3105e745-fcc1-4f8f-8c94-dfca5c71995f"]]
|
40317
|
+
[1m[36mStrain::Article Exists (0.8ms)[0m [1mSELECT 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[0m
|
40318
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
40320
|
+
Completed 200 OK in 25ms (Views: 0.5ms | ActiveRecord: 2.6ms)
|
40321
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40322
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40323
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40324
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40325
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40326
|
+
[1m[36mStrain::Article Load (0.3ms)[0m [1mSELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1[0m [["id", "a1ca35fc-3336-422b-952d-811a1f304202"]]
|
40327
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40328
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40329
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "strain_articles"
|
40330
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40331
|
+
[1m[35mStrain::Variant Exists (0.6ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40332
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36mStrain::Variant Load (0.6ms)[0m [1mSELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC[0m
|
40337
|
+
Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 0.6ms)
|
40338
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40339
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40340
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40341
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40342
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40343
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "strain_variants"[0m
|
40344
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40345
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40346
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40347
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40348
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mStrain::Variant Load (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40356
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40357
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40358
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40359
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40360
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40361
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "strain_variants"[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40366
|
+
[1m[36mStrain::Variant Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40367
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
40369
|
+
Completed 201 Created in 23ms (Views: 0.4ms | ActiveRecord: 1.1ms)
|
40370
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40371
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40372
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40373
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40374
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "strain_variants"
|
40375
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40376
|
+
[1m[35mStrain::Variant Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40377
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40383
|
+
[1m[35mStrain::Variant Load (0.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1[0m [["id", "e39a4913-fc9d-4ada-bf2c-15e16afea5fb"]]
|
40385
|
+
[1m[35m (0.4ms)[0m COMMIT
|
40386
|
+
Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms)
|
40387
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40388
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40389
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40390
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "strain_variants"
|
40391
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40392
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "strain_variants"
|
40393
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40394
|
+
[1m[35mStrain::Variant Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40395
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40401
|
+
[1m[35mStrain::Variant Load (0.3ms)[0m 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
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != 'e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e') LIMIT 1[0m
|
40403
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
40405
|
+
Completed 200 OK in 26ms (Views: 0.5ms | ActiveRecord: 1.7ms)
|
40406
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40407
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40408
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40409
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
40410
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40411
|
+
[1m[36mStrain::Variant Load (0.5ms)[0m [1mSELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1[0m [["id", "e505ffcc-fbc4-4c8d-a7f9-ece488e3c56e"]]
|
40412
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40413
|
+
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40414
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
40415
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40416
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
40417
|
+
[1m[35mStrain::Variant Exists (1.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40418
|
+
[1m[36mSQL (3.7ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40420
|
+
[1m[36mStrain::Article Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40421
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40422
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40423
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
40424
|
+
[1m[36mStrain::Variant Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40425
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40427
|
+
[1m[35mStrain::Article Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE "strain_articles"."slug" IS NULL LIMIT 1
|
40428
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
40429
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40430
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40431
|
+
[1m[35mStrain::Variant Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40432
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40434
|
+
[1m[36mStrain::Article Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('invalid slug') LIMIT 1[0m
|
40435
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40436
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
40437
|
+
[1m[35mStrain::Article Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40438
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40439
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40440
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40441
|
+
[1m[35mStrain::Variant Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40442
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40444
|
+
[1m[36mStrain::Article Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40445
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40446
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40447
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
40448
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40449
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40451
|
+
[1m[35mStrain::Article Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40452
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40453
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40454
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
40455
|
+
[1m[35mStrain::Variant Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40456
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40458
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40459
|
+
[1m[35mStrain::Article Exists (0.3ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40460
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
40462
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
40463
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
40465
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40466
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40467
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
40468
|
+
[1m[36mStrain::Variant Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40469
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40471
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
40472
|
+
[1m[36mStrain::Article Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40473
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40475
|
+
[1m[35mStrain::Article Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40476
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
40477
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40478
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40479
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40480
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
40482
|
+
[1m[36mStrain::Article Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40483
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40484
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40485
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
40486
|
+
[1m[36mStrain::Variant Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40487
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40489
|
+
[1m[35mStrain::Article Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40490
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
40491
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40492
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
40493
|
+
[1m[35mStrain::Article Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40494
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40495
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40498
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40499
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40500
|
+
[1m[36mStrain::Variant Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40501
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40502
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40503
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE "strain_variants"."name" IS NULL LIMIT 1
|
40504
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
40505
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40506
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40507
|
+
[1m[35mStrain::Variant Exists (0.8ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40508
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
40509
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40510
|
+
[1m[36mStrain::Variant Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40511
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40512
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40513
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
40514
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40515
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40517
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
40518
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
40520
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40521
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40522
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
40523
|
+
[1m[35mStrain::Variant Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40524
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
40526
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40527
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40528
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40529
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40530
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
40531
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40532
|
+
[1m[36mStrain::Variant Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40533
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
40535
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40536
|
+
[1m[36mStrain::Article Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40537
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mStrain::Variant Load (1.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40544
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40545
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40546
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40547
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40548
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "strain_articles"
|
40549
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40550
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "strain_articles"
|
40551
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40552
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40553
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40554
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
40556
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40557
|
+
[1m[36mStrain::Article Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40558
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mStrain::Article Load (0.4ms)[0m 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
|
+
[1m[36mStrain::Variant Load (0.3ms)[0m [1mSELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1[0m [["id", "e57e3cc4-40f3-4943-9c8c-3a35a07f873d"]]
|
40565
|
+
Completed 200 OK in 30ms (Views: 0.6ms | ActiveRecord: 0.8ms)
|
40566
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40567
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40568
|
+
[1m[35m (0.3ms)[0m BEGIN
|
40569
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
40570
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40571
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40572
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "strain_articles"
|
40573
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40574
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40575
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40576
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40582
|
+
[1m[36mStrain::Variant Load (0.3ms)[0m [1mSELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1[0m [["id", "6a942c1b-258c-4b75-b1c6-6b52c1fd9457"]]
|
40583
|
+
[1m[35mStrain::Article Exists (0.6ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1
|
40584
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "strain_articles" ("title", "slug", "body", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.4ms)[0m COMMIT
|
40586
|
+
Completed 201 Created in 24ms (Views: 1.0ms | ActiveRecord: 1.8ms)
|
40587
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
40588
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
40589
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40590
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40591
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40592
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "strain_articles"
|
40593
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40594
|
+
[1m[35mStrain::Variant Exists (0.7ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40595
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40601
|
+
[1m[35mStrain::Variant Load (0.4ms)[0m SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "f53fe724-f773-4f25-8fe4-4d9b2a6f9125"]]
|
40602
|
+
[1m[36mStrain::Article Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-slug') LIMIT 1[0m
|
40603
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40604
|
+
Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.0ms)
|
40605
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40606
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40607
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40608
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40609
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40610
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "strain_articles"
|
40611
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40612
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40613
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m COMMIT
|
40615
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40616
|
+
[1m[35mStrain::Article Exists (0.5ms)[0m SELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1
|
40617
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40623
|
+
[1m[35mStrain::Article Load (0.4ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "strain_articles" WHERE "strain_articles"."id" = $1[0m [["id", "7d109877-5565-4975-a9cf-d8f4a7050ebc"]]
|
40625
|
+
[1m[35m (0.5ms)[0m COMMIT
|
40626
|
+
Completed 204 No Content in 5ms (Views: 0.3ms | ActiveRecord: 1.6ms)
|
40627
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40628
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40629
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40630
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "strain_articles"
|
40631
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40632
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "strain_variants"
|
40633
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "strain_articles"[0m
|
40634
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40635
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40636
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
40638
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40639
|
+
[1m[36mStrain::Article Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_articles" WHERE LOWER("strain_articles"."slug") = LOWER('test-article') LIMIT 1[0m
|
40640
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "strain_articles" ("body", "slug", "title", "variant_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) 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
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40646
|
+
[1m[36mStrain::Article Load (0.4ms)[0m [1mSELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 ORDER BY "strain_articles"."id" ASC LIMIT 1[0m [["id", "73541ac4-341a-4eca-81fe-73930b3dc402"]]
|
40647
|
+
[1m[35mStrain::Variant Load (0.3ms)[0m SELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1 [["id", "6c82a4b4-25bc-4742-90e1-599d8ae6cced"]]
|
40648
|
+
[1m[36mStrain::Article Exists (0.7ms)[0m [1mSELECT 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[0m
|
40649
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
40651
|
+
Completed 200 OK in 22ms (Views: 0.5ms | ActiveRecord: 2.1ms)
|
40652
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40653
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40654
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40655
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40656
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40657
|
+
[1m[36mStrain::Article Load (0.3ms)[0m [1mSELECT "strain_articles".* FROM "strain_articles" WHERE "strain_articles"."id" = $1 LIMIT 1[0m [["id", "73541ac4-341a-4eca-81fe-73930b3dc402"]]
|
40658
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40659
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40660
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "strain_articles"
|
40661
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40662
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40663
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36mStrain::Variant Load (0.4ms)[0m [1mSELECT "strain_variants".* FROM "strain_variants" ORDER BY "strain_variants"."id" ASC[0m
|
40668
|
+
Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.4ms)
|
40669
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40670
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40671
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40672
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40673
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40674
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "strain_variants"[0m
|
40675
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40676
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "strain_variants"[0m
|
40677
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40678
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40679
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($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
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mStrain::Variant Load (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
40687
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40688
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40689
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40690
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40691
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40692
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "strain_variants"[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40697
|
+
[1m[36mStrain::Variant Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1[0m
|
40698
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
40700
|
+
Completed 201 Created in 23ms (Views: 0.4ms | ActiveRecord: 1.3ms)
|
40701
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40702
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40703
|
+
[1m[35m (0.1ms)[0m BEGIN
|
40704
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40705
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "strain_variants"
|
40706
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40707
|
+
[1m[35mStrain::Variant Exists (0.8ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40708
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40714
|
+
[1m[35mStrain::Variant Load (0.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "strain_variants" WHERE "strain_variants"."id" = $1[0m [["id", "0dcb519a-7e37-44aa-afa6-213b7e5182b5"]]
|
40716
|
+
[1m[35m (0.4ms)[0m COMMIT
|
40717
|
+
Completed 204 No Content in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms)
|
40718
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40719
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40720
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40721
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "strain_variants"
|
40722
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40723
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "strain_variants"
|
40724
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40725
|
+
[1m[35mStrain::Variant Exists (0.4ms)[0m SELECT 1 AS one FROM "strain_variants" WHERE LOWER("strain_variants"."name") = LOWER('test') LIMIT 1
|
40726
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "strain_variants" ("name", "schema", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40732
|
+
[1m[35mStrain::Variant Load (0.4ms)[0m 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
|
+
[1m[36mStrain::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "strain_variants" WHERE (LOWER("strain_variants"."name") = LOWER('updated') AND "strain_variants"."id" != '24e27dda-cc29-492e-b3f8-d433a3038276') LIMIT 1[0m
|
40734
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
40736
|
+
Completed 200 OK in 27ms (Views: 0.5ms | ActiveRecord: 2.2ms)
|
40737
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40738
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40739
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40740
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
40741
|
+
[1m[35m (0.2ms)[0m BEGIN
|
40742
|
+
[1m[36mStrain::Variant Load (0.4ms)[0m [1mSELECT "strain_variants".* FROM "strain_variants" WHERE "strain_variants"."id" = $1 LIMIT 1[0m [["id", "24e27dda-cc29-492e-b3f8-d433a3038276"]]
|
40743
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
40744
|
+
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "strain_variants"[0m
|