(4.5ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.9ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$a57s8A.LzRDXLUYxucSi2eITaWVtk.2at2CWIapzdyyEvrtmcF5Be"], ["created_at", "2020-07-09 09:58:16.292496"], ["updated_at", "2020-07-09 09:58:16.292496"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 09:58:16.301184"], ["updated_at", "2020-07-09 09:58:16.301184"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 10:58:16 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 75.7ms | Allocations: 6172) Completed 200 OK in 107ms (Views: 86.7ms | ActiveRecord: 0.1ms | Allocations: 10052)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 10:58:16 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 160)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$24bR7Co5NRMq7yhxLM7QruBmmY6wv9UUYuNAOWZj9bZ0sFNX41A5O"], ["created_at", "2020-07-09 09:58:16.506533"], ["updated_at", "2020-07-09 09:58:16.506533"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 10:58:16 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 09:58:16.538872"], ["updated_at", "2020-07-09 09:58:16.538872"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 1ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 10:58:16 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$hbb.2KuUVPR7Nslb.j0nne/eNXnRf.4daDqhrndKzEd0ZPPWgLkee"], ["created_at", "2020-07-09 09:58:16.559902"], ["updated_at", "2020-07-09 09:58:16.559902"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 09:58:16.561002"], ["updated_at", "2020-07-09 09:58:16.561002"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 10:58:16 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 09:58:16.567687"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 995) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 09:58:16.571746"], ["updated_at", "2020-07-09 09:58:16.571746"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 10:58:16 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$7wJw7WmxXYzyM2MbGKSpm.Z9lcYKA9w3kP0EKzXzC.crs1oi8KFN6"], ["created_at", "2020-07-09 09:58:16.582257"], ["updated_at", "2020-07-09 09:58:16.582257"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 10:58:16 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.1ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 12.7ms | Allocations: 1814) Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.0ms | Allocations: 2539)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 10:58:16 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 09:58:16.612054"], ["updated_at", "2020-07-09 09:58:16.612054"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$.dRCtm75RG3keN2RbbfNjOXOVvWVIFqaBzdlx.2ndRlGTdi6lYB/C"], ["created_at", "2020-07-09 09:58:16.614919"], ["updated_at", "2020-07-09 09:58:16.614919"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 10:58:16 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 1ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.0ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 09:58:16.624898"], ["updated_at", "2020-07-09 09:58:16.624898"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 10:58:16 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.3ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (11.9ms) SELECT sqlite_version(*)  (1.4ms) SELECT sqlite_version(*)  (0.0ms) SELECT sqlite_version(*)  (0.0ms) SELECT sqlite_version(*)  (0.1ms) DROP TABLE IF EXISTS "feature_toggles"  (1.2ms) CREATE TABLE "feature_toggles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "active" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) DROP TABLE IF EXISTS "users"  (0.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.8ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (20200624115316)  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20200623125321);   (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-09 10:17:18.389350"], ["updated_at", "2020-07-09 10:17:18.389350"]]  (0.9ms) commit transaction ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]]  (0.0ms) begin transaction ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "8dfe9119086661dc796fa00452dc81ff692523f5"], ["created_at", "2020-07-09 10:17:18.393625"], ["updated_at", "2020-07-09 10:17:18.393625"]]  (0.5ms) commit transaction  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.1ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$tLEHG.R7PbaPRNhw2l3Y1OzWtEXJxYx.9s2q7/P24mwxfTRXlh8Vq"], ["created_at", "2020-07-09 10:17:18.693977"], ["updated_at", "2020-07-09 10:17:18.693977"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 10:17:18.701016"], ["updated_at", "2020-07-09 10:17:18.701016"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:17:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 32.2ms | Allocations: 6172) Completed 200 OK in 45ms (Views: 36.9ms | ActiveRecord: 0.1ms | Allocations: 10052)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:17:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 160)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$7NuMfW0L6rFrzhsMG6c8h.aGoQNqxMlYt414E6H6PCRY65nZwHH7O"], ["created_at", "2020-07-09 10:17:18.797686"], ["updated_at", "2020-07-09 10:17:18.797686"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:17:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 10:17:18.812189"], ["updated_at", "2020-07-09 10:17:18.812189"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:17:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$xiGsovwO2NXse.0tjyXERuSLH4Q9tGsi33oiQu2gaRRCfxrseU7.K"], ["created_at", "2020-07-09 10:17:18.829975"], ["updated_at", "2020-07-09 10:17:18.829975"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:17:18.831106"], ["updated_at", "2020-07-09 10:17:18.831106"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:17:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 10:17:18.837811"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 1002) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:17:18.842430"], ["updated_at", "2020-07-09 10:17:18.842430"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:17:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$Z29Wt9WF6UArbLYaNJ3CO.6FGpKNZL0Tz9HfapjQPCM6TIPFzqPSS"], ["created_at", "2020-07-09 10:17:18.853742"], ["updated_at", "2020-07-09 10:17:18.853742"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:17:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.5ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 13.0ms | Allocations: 1814) Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms | Allocations: 2539)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:17:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:17:18.883715"], ["updated_at", "2020-07-09 10:17:18.883715"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$Lu5TEKThjvhil.wDFgSTH.d2LRhkWi/r0.lLfmXrXEUKSYhPN4KWO"], ["created_at", "2020-07-09 10:17:18.886949"], ["updated_at", "2020-07-09 10:17:18.886949"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:17:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 1ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:17:18.897305"], ["updated_at", "2020-07-09 10:17:18.897305"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:17:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.3ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (15.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.4ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$8tvyY4H/mbtYmBY8xtdFVuVnkL6Wf8v.gEEts9Y91Vad6N.GDuVlW"], ["created_at", "2020-07-09 10:21:01.351197"], ["updated_at", "2020-07-09 10:21:01.351197"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 10:21:01.358018"], ["updated_at", "2020-07-09 10:21:01.358018"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 29.5ms | Allocations: 6172) Completed 200 OK in 42ms (Views: 34.2ms | ActiveRecord: 0.1ms | Allocations: 10052)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 160)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$6PatzogXscSKrOYzStK.9uIFILp6BHZTNlEKWsTDGBtBzLSmF5at2"], ["created_at", "2020-07-09 10:21:01.455043"], ["updated_at", "2020-07-09 10:21:01.455043"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 10:21:01.481440"], ["updated_at", "2020-07-09 10:21:01.481440"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$O7J2.rTmSR5cyiIa5GKOJuN.kvKKBa0XjYb0CsNDoKcHLGZsF/hvy"], ["created_at", "2020-07-09 10:21:01.497751"], ["updated_at", "2020-07-09 10:21:01.497751"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:01.498902"], ["updated_at", "2020-07-09 10:21:01.498902"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 10:21:01.505431"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 995) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:01.510014"], ["updated_at", "2020-07-09 10:21:01.510014"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$QtUxrBfGhm0bA6qQ/w8Cm.ICNYrJQh4Ay0ZB1CsnGJk5z5cN6E47i"], ["created_at", "2020-07-09 10:21:01.520803"], ["updated_at", "2020-07-09 10:21:01.520803"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:21:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.2ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 7.4ms | Allocations: 1814) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms | Allocations: 2539)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:21:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:01.547420"], ["updated_at", "2020-07-09 10:21:01.547420"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$pjJrdKT/BbPATnHGrnQtOOgnOhcpeqxoXOmssclH6SVH4uC04ELlO"], ["created_at", "2020-07-09 10:21:01.550774"], ["updated_at", "2020-07-09 10:21:01.550774"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.4ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:01.562791"], ["updated_at", "2020-07-09 10:21:01.562791"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.6ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.0ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$js5CbP.KydePcqyUnCQPBuLqW5Kx6xE.GVunL7F2LZTz4/aNvG6Ci"], ["created_at", "2020-07-09 10:21:28.289149"], ["updated_at", "2020-07-09 10:21:28.289149"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 10:21:28.296283"], ["updated_at", "2020-07-09 10:21:28.296283"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 36.3ms | Allocations: 6172) Completed 200 OK in 50ms (Views: 42.1ms | ActiveRecord: 0.2ms | Allocations: 10052)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 160)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$iMJk8/reaJI./fJgOBIMae4rXaAKsjdbJfiou46LY86Nhr/uW7btS"], ["created_at", "2020-07-09 10:21:28.412813"], ["updated_at", "2020-07-09 10:21:28.412813"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 10:21:28.441781"], ["updated_at", "2020-07-09 10:21:28.441781"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$P/Gu6ejKjLEHWmVwEG9i8OPAgiBAA.KlU6/8FultK0CMrN3TPtPhG"], ["created_at", "2020-07-09 10:21:28.458593"], ["updated_at", "2020-07-09 10:21:28.458593"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:28.460386"], ["updated_at", "2020-07-09 10:21:28.460386"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 10:21:28.467573"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 995) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:28.471867"], ["updated_at", "2020-07-09 10:21:28.471867"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$5R.hfVFF.5UEfzWSMHYutu9vlbwJh81uLs1xk/RYYUecmfT.Iazg."], ["created_at", "2020-07-09 10:21:28.483647"], ["updated_at", "2020-07-09 10:21:28.483647"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:21:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.2ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 7.2ms | Allocations: 1814) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms | Allocations: 2539)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:21:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:28.507844"], ["updated_at", "2020-07-09 10:21:28.507844"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$ZoxizGMPc51fQxyzdbjFYuSH3Z9C18VOqz3i23Do.66bWxJQk5V1a"], ["created_at", "2020-07-09 10:21:28.511487"], ["updated_at", "2020-07-09 10:21:28.511487"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 1ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:28.521357"], ["updated_at", "2020-07-09 10:21:28.521357"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.6ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.3ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$X/PA27.oBFtRgMtCVhhCqe0OjZYVR66/gdMATmoVuyUm7EGfk.LYq"], ["created_at", "2020-07-09 10:21:59.209802"], ["updated_at", "2020-07-09 10:21:59.209802"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 10:21:59.216217"], ["updated_at", "2020-07-09 10:21:59.216217"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:59 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 16.4ms | Allocations: 6172) Completed 200 OK in 47ms (Views: 21.5ms | ActiveRecord: 0.1ms | Allocations: 10052)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:59 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 160)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$PXGmyPeqs..0tqPxuYbxNedtlYdpbeJaMosv2vYOhy8gtM4GnHJWK"], ["created_at", "2020-07-09 10:21:59.335460"], ["updated_at", "2020-07-09 10:21:59.335460"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:59 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 10:21:59.349621"], ["updated_at", "2020-07-09 10:21:59.349621"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:21:59 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$3zGwOWI84IKXmSnEJd6e5ewr0dm0QZUKCY79Sj0u..Hc9VQpYGbLq"], ["created_at", "2020-07-09 10:21:59.366362"], ["updated_at", "2020-07-09 10:21:59.366362"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:59.367823"], ["updated_at", "2020-07-09 10:21:59.367823"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:59 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 10:21:59.374480"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 995) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:59.379479"], ["updated_at", "2020-07-09 10:21:59.379479"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:59 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$G9vG7AIJbs8/hSzByujvK.6cGXRAkoioZNL6lelHMwO2EHyq9oxfS"], ["created_at", "2020-07-09 10:21:59.391511"], ["updated_at", "2020-07-09 10:21:59.391511"]]  (0.2ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:21:59 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.3ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 7.1ms | Allocations: 1814) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms | Allocations: 2539)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:21:59 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:59.418323"], ["updated_at", "2020-07-09 10:21:59.418323"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$iMlhD9A1UN2Zf.eLnQJSAuo0.Jz8RZItzRiwrTzeNPK8YaAtc5zC6"], ["created_at", "2020-07-09 10:21:59.421412"], ["updated_at", "2020-07-09 10:21:59.421412"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:59 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:21:59.432805"], ["updated_at", "2020-07-09 10:21:59.432805"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:21:59 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.7ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.1ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$8v5xj5o46SRQp5ip28buBu3egGFEGRpkYD1P2ac8yssxF2KMVnB56"], ["created_at", "2020-07-09 10:33:12.158788"], ["updated_at", "2020-07-09 10:33:12.158788"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 10:33:12.166584"], ["updated_at", "2020-07-09 10:33:12.166584"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:33:12 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms | Allocations: 5220)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:33:12 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$SLXEDWxSpAMoYUiS0xvWYuIGzCeg0SPlLzpo7Ahlmtop95hwA64v2"], ["created_at", "2020-07-09 10:33:12.262224"], ["updated_at", "2020-07-09 10:33:12.262224"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:33:12 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms | Allocations: 4153)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:33:12 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$t5lL6V6FEF4FwnWf8RUKu.7EKra0ZFUm6ICsiR0NcE8MjZKQGZpXe"], ["created_at", "2020-07-09 10:33:12.294084"], ["updated_at", "2020-07-09 10:33:12.294084"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:33:12.295230"], ["updated_at", "2020-07-09 10:33:12.295230"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:33:12 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms | Allocations: 4149)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:33:12.310491"], ["updated_at", "2020-07-09 10:33:12.310491"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:33:12 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$2OrwSPVODA3LLv8ZGz2npuLlXrCoPwAreiATHg8veH80y6Q/v0Ehq"], ["created_at", "2020-07-09 10:33:12.321632"], ["updated_at", "2020-07-09 10:33:12.321632"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:33:12 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms | Allocations: 4081)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:33:12 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:33:12.344624"], ["updated_at", "2020-07-09 10:33:12.344624"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$JkE/k9I1r/fmi.ykxw9c8euc2YbKGMP7vxDEWtElMaGZgX2dW7UzS"], ["created_at", "2020-07-09 10:33:12.347720"], ["updated_at", "2020-07-09 10:33:12.347720"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:33:12 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms | Allocations: 4117)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:33:12.362824"], ["updated_at", "2020-07-09 10:33:12.362824"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:33:12 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.4ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.2ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$fQHOqaV77CPHasb3VPbDB.PyeYy9pOw2PFUQdjUEMRMwzJZIzU27."], ["created_at", "2020-07-09 10:33:46.866699"], ["updated_at", "2020-07-09 10:33:46.866699"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 10:33:46.873302"], ["updated_at", "2020-07-09 10:33:46.873302"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:33:46 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 31.3ms | Allocations: 6171) Completed 200 OK in 45ms (Views: 36.0ms | ActiveRecord: 0.1ms | Allocations: 10131)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:33:46 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$qwmVcQ6X4mxIHMiqQutP7.nfvfl2.Rkza4/UkazAgVJjZkjnvhd8e"], ["created_at", "2020-07-09 10:33:46.973363"], ["updated_at", "2020-07-09 10:33:46.973363"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:33:46 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 10:33:46.987485"], ["updated_at", "2020-07-09 10:33:46.987485"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:33:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$gh6QF27.imiWgZObFFtBVOi8zxvX8qZeY64W./YXHGjQ7MJtsD5Gu"], ["created_at", "2020-07-09 10:33:47.013098"], ["updated_at", "2020-07-09 10:33:47.013098"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:33:47.014297"], ["updated_at", "2020-07-09 10:33:47.014297"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:33:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 10:33:47.020373"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 995) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:33:47.025479"], ["updated_at", "2020-07-09 10:33:47.025479"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:33:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$kTpTgUnrXzv2q4Pj56et7OcDTxUxJ8KIbG4/uS8Rq3luFzfpCQT56"], ["created_at", "2020-07-09 10:33:47.043863"], ["updated_at", "2020-07-09 10:33:47.043863"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:33:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.6ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 8.2ms | Allocations: 1915) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms | Allocations: 2740)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:33:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.6ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:33:47.073104"], ["updated_at", "2020-07-09 10:33:47.073104"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$krtjVEah1spF15wrpvTlVuYj8QixA5WA9ch.O4eF.g5Mxr1fwMbn6"], ["created_at", "2020-07-09 10:33:47.077412"], ["updated_at", "2020-07-09 10:33:47.077412"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:33:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:33:47.089399"], ["updated_at", "2020-07-09 10:33:47.089399"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:33:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.4ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.1ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$rvJiKldG.iAVOmFzBaj17uNuFy0mtLGhPpZo2683Wzb0ozkdAKt5G"], ["created_at", "2020-07-09 10:34:07.767976"], ["updated_at", "2020-07-09 10:34:07.767976"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 10:34:07.774248"], ["updated_at", "2020-07-09 10:34:07.774248"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:34:07 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 31.8ms | Allocations: 6171) Completed 200 OK in 44ms (Views: 36.5ms | ActiveRecord: 0.1ms | Allocations: 10051)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:34:07 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$CYDgsZsMlmpZ7yoo.OyGVeluITFwgFBLBrvyIDuJSfdZgufML6w1q"], ["created_at", "2020-07-09 10:34:07.872761"], ["updated_at", "2020-07-09 10:34:07.872761"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:34:07 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 10:34:07.886120"], ["updated_at", "2020-07-09 10:34:07.886120"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:34:07 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$yZzcvmn7Q7DBaRL5bAicFeCzjOOON1V8R2rjdDNYgPYsPUFI1VuD6"], ["created_at", "2020-07-09 10:34:07.913507"], ["updated_at", "2020-07-09 10:34:07.913507"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:34:07.914698"], ["updated_at", "2020-07-09 10:34:07.914698"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:34:07 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 10:34:07.921493"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 995) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:34:07.926213"], ["updated_at", "2020-07-09 10:34:07.926213"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:34:07 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$wpI.B7Wg2ewqVd43AkapjO958Qpiscy2fR.9Ya8Y0IOi3yMjNXln2"], ["created_at", "2020-07-09 10:34:07.942802"], ["updated_at", "2020-07-09 10:34:07.942802"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:34:07 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.4ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 7.1ms | Allocations: 1819) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms | Allocations: 2548)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:34:07 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:34:07.967664"], ["updated_at", "2020-07-09 10:34:07.967664"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$jYYiW635975NRtJiUyt1p.1IOi0GwKnPchWFLSi/Vsf9pZPhGLpK2"], ["created_at", "2020-07-09 10:34:07.970765"], ["updated_at", "2020-07-09 10:34:07.970765"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:34:07 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:34:07.982223"], ["updated_at", "2020-07-09 10:34:07.982223"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:34:07 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.4ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.9ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$xk7MicyD05hgBxyHwsul3ewLNQhqLBLdZQKxZI1.JKC5wCUiahdRe"], ["created_at", "2020-07-09 10:35:41.770836"], ["updated_at", "2020-07-09 10:35:41.770836"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 10:35:41.777341"], ["updated_at", "2020-07-09 10:35:41.777341"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:35:41 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 32.9ms | Allocations: 6171) Completed 200 OK in 45ms (Views: 37.3ms | ActiveRecord: 0.1ms | Allocations: 10051)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:35:41 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$Jv/IcVmMZEV0ZE96ZumLmOxinbct/2QUa8M9EQxPV5aVA0jmY0Ni2"], ["created_at", "2020-07-09 10:35:41.876641"], ["updated_at", "2020-07-09 10:35:41.876641"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:35:41 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 10:35:41.907329"], ["updated_at", "2020-07-09 10:35:41.907329"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:35:41 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$g4zwf3SQtCmyfNLwdbTtd.nvh52efcsbcaJ0cH2TtjZaEm4LfHj6C"], ["created_at", "2020-07-09 10:35:41.924791"], ["updated_at", "2020-07-09 10:35:41.924791"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:35:41.925915"], ["updated_at", "2020-07-09 10:35:41.925915"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:35:41 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 10:35:41.932826"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 995) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:35:41.937131"], ["updated_at", "2020-07-09 10:35:41.937131"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:35:41 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$/ElQNSLQbQ4cdouKZfLw6enVPR0/opFfVTl.4Ieky0jsjaSkyAymO"], ["created_at", "2020-07-09 10:35:41.953011"], ["updated_at", "2020-07-09 10:35:41.953011"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:35:41 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.3ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 7.2ms | Allocations: 1819) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms | Allocations: 2548)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:35:41 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:35:41.978306"], ["updated_at", "2020-07-09 10:35:41.978306"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$LQCOtOGfTjaZ9VnKSA1HDuusXiFJuWzBYfGGNLSExkJenNPcg8WO2"], ["created_at", "2020-07-09 10:35:41.981627"], ["updated_at", "2020-07-09 10:35:41.981627"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:35:41 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 1ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:35:41.992237"], ["updated_at", "2020-07-09 10:35:41.992237"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:35:41 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.8ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.4ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$QEWlg9HkVfejXx4kv5eB1u06z3PQR/UUZooqzGSbw7z9HcxnlYhMC"], ["created_at", "2020-07-09 10:40:56.911548"], ["updated_at", "2020-07-09 10:40:56.911548"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 10:40:56.932305"], ["updated_at", "2020-07-09 10:40:56.932305"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:40:56 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 42.6ms | Allocations: 6171) Completed 200 OK in 71ms (Views: 49.1ms | ActiveRecord: 0.1ms | Allocations: 10051)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:40:57 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$aulDAt.U86Oh2X3x56rFkeZ0wLY37wZAS5OtzWcUbrW2Dka.Twrh."], ["created_at", "2020-07-09 10:40:57.053509"], ["updated_at", "2020-07-09 10:40:57.053509"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:40:57 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 10:40:57.068262"], ["updated_at", "2020-07-09 10:40:57.068262"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:40:57 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$avZIP6hDQ3YaVEdu0e/Wt.fMfgoMVTQL.UH5Jy6zGvrl0MRGuQJI6"], ["created_at", "2020-07-09 10:40:57.091634"], ["updated_at", "2020-07-09 10:40:57.091634"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:40:57.092877"], ["updated_at", "2020-07-09 10:40:57.092877"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:40:57 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 10:40:57.099434"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 995) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:40:57.103642"], ["updated_at", "2020-07-09 10:40:57.103642"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:40:57 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$AmNU76tADOfj6r2P9nHUj.QrPLZif.Ohjkx4i49sBbqdpYXzJTor6"], ["created_at", "2020-07-09 10:40:57.120013"], ["updated_at", "2020-07-09 10:40:57.120013"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:40:57 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.3ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 7.8ms | Allocations: 1819) Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms | Allocations: 2548)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:40:57 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:40:57.146509"], ["updated_at", "2020-07-09 10:40:57.146509"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$GmMrEvE71Grxml67WhTe5.H7KquZXR8v/JlKh8S3mrUOZYcWqsEly"], ["created_at", "2020-07-09 10:40:57.150388"], ["updated_at", "2020-07-09 10:40:57.150388"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:40:57 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 1ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:40:57.161108"], ["updated_at", "2020-07-09 10:40:57.161108"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:40:57 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (2.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.7ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.5ms) DELETE FROM "feature_toggles";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$QuxxCDGQQ7ExT61wTKbjguUTfmAfPDPeu/iPxUn1mlY9bG6de5AUm"], ["created_at", "2020-07-09 10:42:02.740244"], ["updated_at", "2020-07-09 10:42:02.740244"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 10:42:02.746913"], ["updated_at", "2020-07-09 10:42:02.746913"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:42:02 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 14.5ms | Allocations: 6171) Completed 200 OK in 26ms (Views: 19.1ms | ActiveRecord: 0.1ms | Allocations: 10051)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:42:02 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$QSEnL0vfh9v/n2ppuykQae8iA2IvaqAIK8FZOAB5KxPBwqwHDlSO2"], ["created_at", "2020-07-09 10:42:02.836492"], ["updated_at", "2020-07-09 10:42:02.836492"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:42:02 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 10:42:02.849407"], ["updated_at", "2020-07-09 10:42:02.849407"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 11:42:02 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$QTNZ/bdx.ZWKL7437TkE0e5GA2RBpeuKEhIb2K6smehOiOYSKaq52"], ["created_at", "2020-07-09 10:42:02.866065"], ["updated_at", "2020-07-09 10:42:02.866065"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:42:02.867276"], ["updated_at", "2020-07-09 10:42:02.867276"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:42:02 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 10:42:02.873394"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 995) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:42:02.877902"], ["updated_at", "2020-07-09 10:42:02.877902"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:42:02 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$6ddXFL8PUoeaqVYR9sAJ8eiHA6EGNxE5fHX95xxg2n8CKpyBmtRSW"], ["created_at", "2020-07-09 10:42:02.894580"], ["updated_at", "2020-07-09 10:42:02.894580"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:42:02 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.1ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 6.7ms | Allocations: 1819) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms | Allocations: 2548)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 11:42:02 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:42:02.919672"], ["updated_at", "2020-07-09 10:42:02.919672"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$j5zCNiGxDVha1YN8PB5BCOnPLYWj2W/QI/4dptDYiXtpbkX5Awv2i"], ["created_at", "2020-07-09 10:42:02.922734"], ["updated_at", "2020-07-09 10:42:02.922734"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:42:02 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 1ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 10:42:02.933512"], ["updated_at", "2020-07-09 10:42:02.933512"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 11:42:02 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.3ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.9ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.3ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.2ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.4ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (1.3ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$jypk8FYyPd3.bqB1bNLyUOGeQvtwt/9HlCOiHHwO959iJOUFVdfiG"], ["created_at", "2020-07-09 11:25:22.728168"], ["updated_at", "2020-07-09 11:25:22.728168"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 11:25:22.734368"], ["updated_at", "2020-07-09 11:25:22.734368"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 12:25:22 +0100  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 12:25:22 +0100  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$14pGHIt6yrpCwfDEowJwP.Te/lW7SshKgRoxqjC0B8pSG0VLjcsFe"], ["created_at", "2020-07-09 11:25:22.753364"], ["updated_at", "2020-07-09 11:25:22.753364"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 12:25:22 +0100  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 12:25:22 +0100  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$4CilQcVabDkPYccgGo2RU.uSfMpGTczbAkuviN41TAuEDSAMRafXy"], ["created_at", "2020-07-09 11:25:22.774312"], ["updated_at", "2020-07-09 11:25:22.774312"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 11:25:22.775362"], ["updated_at", "2020-07-09 11:25:22.775362"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 12:25:22 +0100  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 11:25:22.781711"], ["updated_at", "2020-07-09 11:25:22.781711"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 12:25:22 +0100  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$mchSGrpJAllHDgrflYQp7us6P2pq8EmGYsfCGPzlcLb1MXxKKr.1K"], ["created_at", "2020-07-09 11:25:22.790116"], ["updated_at", "2020-07-09 11:25:22.790116"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 12:25:22 +0100  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 12:25:22 +0100  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 11:25:22.801090"], ["updated_at", "2020-07-09 11:25:22.801090"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$bsMmi.7scVMSID2XV7Oy5.8B3i9yqGjpLbzhbQtvf2LWBFdBmy5KS"], ["created_at", "2020-07-09 11:25:22.803931"], ["updated_at", "2020-07-09 11:25:22.803931"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 12:25:22 +0100  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 11:25:22.810294"], ["updated_at", "2020-07-09 11:25:22.810294"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 12:25:22 +0100  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.2ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.2ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.2ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$KwqQZ3QV3cRDQkaUEjtLs.YixMKthWUMkVwzObE3FohnPxAyeovOy"], ["created_at", "2020-07-09 11:26:01.710035"], ["updated_at", "2020-07-09 11:26:01.710035"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 11:26:01.715676"], ["updated_at", "2020-07-09 11:26:01.715676"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 12:26:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 29.8ms | Allocations: 6177) Completed 200 OK in 48ms (Views: 35.9ms | ActiveRecord: 0.1ms | Allocations: 10012)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 12:26:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 129)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$499q1Sfqgk.GY4p2RS/Hu.qMBq4le6RMnf2s41eOlP5luBj51PqWq"], ["created_at", "2020-07-09 11:26:01.806055"], ["updated_at", "2020-07-09 11:26:01.806055"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 12:26:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 11:26:01.820044"], ["updated_at", "2020-07-09 11:26:01.820044"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 741) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 12:26:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 114)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$5FO4weoBQsZ07eiysnGYc.M23blO/IKlc8e41HThPO9lm2fkTAyci"], ["created_at", "2020-07-09 11:26:01.836598"], ["updated_at", "2020-07-09 11:26:01.836598"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 11:26:01.837882"], ["updated_at", "2020-07-09 11:26:01.837882"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 12:26:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 11:26:01.844151"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 985) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 11:26:01.848490"], ["updated_at", "2020-07-09 11:26:01.848490"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 12:26:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 114)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$ujpu8pYh1NuQSPLxMIjocexCAPhRQNnYHH2cXpkh491HH5kTvgDse"], ["created_at", "2020-07-09 11:26:01.858794"], ["updated_at", "2020-07-09 11:26:01.858794"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 12:26:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.3ms | Allocations: 158) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 11.9ms | Allocations: 1820) Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.0ms | Allocations: 2527)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 12:26:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 114)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 11:26:01.886940"], ["updated_at", "2020-07-09 11:26:01.886940"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$cvlvMfWoPnDnkD30Xunj2uvUDBCLbi8GyoKkcj/UzAMIB1IvchiR2"], ["created_at", "2020-07-09 11:26:01.889941"], ["updated_at", "2020-07-09 11:26:01.889941"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 12:26:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 1ms (ActiveRecord: 0.2ms | Allocations: 598)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 11:26:01.899390"], ["updated_at", "2020-07-09 11:26:01.899390"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 12:26:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 114)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.3ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.0ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$Kzn8e84BOCtUQMZb1d93h.gnNn7GAAG0o7OZlDwyGTCwLlhoSKpxa"], ["created_at", "2020-07-09 22:38:18.686166"], ["updated_at", "2020-07-09 22:38:18.686166"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 22:38:18.692817"], ["updated_at", "2020-07-09 22:38:18.692817"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:38:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 24.2ms | Allocations: 6171) Completed 200 OK in 42ms (Views: 29.6ms | ActiveRecord: 0.1ms | Allocations: 10051)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:38:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$sdW7/1R81TPYfJqdjQ6VE.154LNb42rfCYka/EmrXtjbLr.tJMLCi"], ["created_at", "2020-07-09 22:38:18.779347"], ["updated_at", "2020-07-09 22:38:18.779347"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:38:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 22:38:18.795743"], ["updated_at", "2020-07-09 22:38:18.795743"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:38:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$eGW5eA76Xst8Zk3m0dIcc.qTcCKWxnqEHza.a91SgQYJmZTH26MKO"], ["created_at", "2020-07-09 22:38:18.816172"], ["updated_at", "2020-07-09 22:38:18.816172"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:38:18.817929"], ["updated_at", "2020-07-09 22:38:18.817929"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:38:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 22:38:18.826226"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 995) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:38:18.831458"], ["updated_at", "2020-07-09 22:38:18.831458"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:38:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$25G/rNn9MGYH3LenfR2fMud2Iyy7T1t7tj2ernDbTcP7Wva2TTkiC"], ["created_at", "2020-07-09 22:38:18.851363"], ["updated_at", "2020-07-09 22:38:18.851363"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:38:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.7ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 8.9ms | Allocations: 1819) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms | Allocations: 2548)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:38:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:38:18.880356"], ["updated_at", "2020-07-09 22:38:18.880356"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$OY9Ye.WwWY/W9jMfZRKIhu4ZbD3FYdHUaAiVsYVlxLeqlKuE9nvtW"], ["created_at", "2020-07-09 22:38:18.884518"], ["updated_at", "2020-07-09 22:38:18.884518"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:38:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.5ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:38:18.897546"], ["updated_at", "2020-07-09 22:38:18.897546"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:38:18 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.4ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$YYMD1271C3Tw.k3iUf6LKeJtVomAO6mqiW3cnTqrKutH0j7v2tNbS"], ["created_at", "2020-07-09 22:39:27.749462"], ["updated_at", "2020-07-09 22:39:27.749462"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 22:39:27.754882"], ["updated_at", "2020-07-09 22:39:27.754882"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:39:27 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 13.8ms | Allocations: 6171) Completed 200 OK in 23ms (Views: 17.8ms | ActiveRecord: 0.1ms | Allocations: 10051)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:39:27 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$nG2aq2Gih14dQTsEyl20R.zmOh7oOaX6FA51l5MzEYK7ObcvKGwuG"], ["created_at", "2020-07-09 22:39:27.813013"], ["updated_at", "2020-07-09 22:39:27.813013"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:39:27 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 22:39:27.826361"], ["updated_at", "2020-07-09 22:39:27.826361"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:39:27 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$Yjhn72Jgy2KgDrHCDOWOTuylpIeMVzSfZ57ieY9HWsBWJfRMo5JX2"], ["created_at", "2020-07-09 22:39:27.844061"], ["updated_at", "2020-07-09 22:39:27.844061"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:39:27.845311"], ["updated_at", "2020-07-09 22:39:27.845311"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:39:27 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 22:39:27.853438"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 995) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:39:27.858109"], ["updated_at", "2020-07-09 22:39:27.858109"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:39:27 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$18ZfBVYWUzKuD6My8M2ge.fcE9zAolGk2shxkklhAtNb8yiFfYZUS"], ["created_at", "2020-07-09 22:39:27.877510"], ["updated_at", "2020-07-09 22:39:27.877510"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:39:27 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.4ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 8.1ms | Allocations: 1819) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.0ms | Allocations: 2548)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:39:27 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:39:27.909013"], ["updated_at", "2020-07-09 22:39:27.909013"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$4N2UqiggTabsOl5DtKJLoevJgJVbAVyh9diX7lAJgV.XXLRHKQpba"], ["created_at", "2020-07-09 22:39:27.912304"], ["updated_at", "2020-07-09 22:39:27.912304"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:39:27 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:39:27.925777"], ["updated_at", "2020-07-09 22:39:27.925777"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:39:27 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (1.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.0ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$UJe9QsAm4lk0qSqs3GF2DOyONz6HfCtcij90s3CD/UGT4T80UIya6"], ["created_at", "2020-07-09 22:46:19.245031"], ["updated_at", "2020-07-09 22:46:19.245031"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 22:46:19.251051"], ["updated_at", "2020-07-09 22:46:19.251051"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:46:19 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 13.7ms | Allocations: 6182) Completed 200 OK in 24ms (Views: 18.1ms | ActiveRecord: 0.1ms | Allocations: 10080)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:46:19 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$p5wem3hyGUwSylGtW2.bVOy4WvqdU8oiRyRwAecpWh8h0ALeQQGo."], ["created_at", "2020-07-09 22:46:19.310345"], ["updated_at", "2020-07-09 22:46:19.310345"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:46:19 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 22:46:19.324151"], ["updated_at", "2020-07-09 22:46:19.324151"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:46:19 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$cFU2ezoCHEJMR3bfE0IREOwI7CVypDdddwIAeD9IwH4qo4np59KyW"], ["created_at", "2020-07-09 22:46:19.343590"], ["updated_at", "2020-07-09 22:46:19.343590"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:46:19.345064"], ["updated_at", "2020-07-09 22:46:19.345064"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:46:19 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 22:46:19.353856"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 995) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:46:19.359381"], ["updated_at", "2020-07-09 22:46:19.359381"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:46:19 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$tmQm.aUhPh2s8VjpLJ8J9.3Yb51wINyE/ma5PYn4H4a9C29eVmkn6"], ["created_at", "2020-07-09 22:46:19.381182"], ["updated_at", "2020-07-09 22:46:19.381182"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:46:19 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.9ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 7.1ms | Allocations: 1825) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms | Allocations: 2554)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:46:19 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:46:19.411905"], ["updated_at", "2020-07-09 22:46:19.411905"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$HpSnDpfFDksh8TYi0hvcy.R5YwdVZgSXOYb5QZoLenpYi1z3PdOzS"], ["created_at", "2020-07-09 22:46:19.416102"], ["updated_at", "2020-07-09 22:46:19.416102"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:46:19 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:46:19.430973"], ["updated_at", "2020-07-09 22:46:19.430973"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:46:19 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.3ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.1ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$cVxd6/4jrnY5Eodi5.sPqO.tBz3TZJqZl82pwfWkiN0kwlPDbBvDC"], ["created_at", "2020-07-09 22:48:55.320632"], ["updated_at", "2020-07-09 22:48:55.320632"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 22:48:55.326584"], ["updated_at", "2020-07-09 22:48:55.326584"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:48:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 13.9ms | Allocations: 6182) Completed 200 OK in 24ms (Views: 18.3ms | ActiveRecord: 0.1ms | Allocations: 10080)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:48:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$HuhGgGmWoQ5sYJt6nZ.YS.CcNG7iLtLVDf2Y65IRWOhovbrcq3Uk6"], ["created_at", "2020-07-09 22:48:55.389347"], ["updated_at", "2020-07-09 22:48:55.389347"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:48:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 22:48:55.403172"], ["updated_at", "2020-07-09 22:48:55.403172"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:48:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$U4id2LSRgf23GaEvi/JTt.D3XBvIjCJFoaaDvtI0iVfiX/eP42pqu"], ["created_at", "2020-07-09 22:48:55.420429"], ["updated_at", "2020-07-09 22:48:55.420429"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:48:55.422137"], ["updated_at", "2020-07-09 22:48:55.422137"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:48:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 22:48:55.430631"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 995) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:48:55.440855"], ["updated_at", "2020-07-09 22:48:55.440855"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:48:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$XC8zj.oJXACPihAE/VPlC.lK84BCB7oVkkyM1cuWlbFnsxtwU9yZG"], ["created_at", "2020-07-09 22:48:55.455230"], ["updated_at", "2020-07-09 22:48:55.455230"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:48:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.9ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 9.1ms | Allocations: 1825) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.0ms | Allocations: 2553)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:48:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:48:55.488296"], ["updated_at", "2020-07-09 22:48:55.488296"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$N7YcD9Ji4iAAiXCqMeWnKuOnocqkv8IdZdNuD6oGg9yx2nQClUEAq"], ["created_at", "2020-07-09 22:48:55.492987"], ["updated_at", "2020-07-09 22:48:55.492987"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:48:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:48:55.507555"], ["updated_at", "2020-07-09 22:48:55.507555"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:48:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.4ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.3ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$H01KceR.oPtzmG6MpPButeTHf67R/O.44YK2DdMTAEyne0PjSEGKW"], ["created_at", "2020-07-09 22:54:55.274757"], ["updated_at", "2020-07-09 22:54:55.274757"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 22:54:55.280617"], ["updated_at", "2020-07-09 22:54:55.280617"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:54:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 13.7ms | Allocations: 6183) Completed 200 OK in 24ms (Views: 18.1ms | ActiveRecord: 0.1ms | Allocations: 10099)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:54:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$j9tzFEKw3UoXNuEL3FB2oeWj5ugLk2menSKUjWFmlykuHbLGP2TyW"], ["created_at", "2020-07-09 22:54:55.342313"], ["updated_at", "2020-07-09 22:54:55.342313"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:54:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 22:54:55.356077"], ["updated_at", "2020-07-09 22:54:55.356077"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:54:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$qyIj3NE0urCBqn9eSVx2C.kSR9yTUuJehudErbX56OeS2lLFTYm5e"], ["created_at", "2020-07-09 22:54:55.374405"], ["updated_at", "2020-07-09 22:54:55.374405"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:54:55.375834"], ["updated_at", "2020-07-09 22:54:55.375834"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:54:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 22:54:55.383562"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 1002) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:54:55.393507"], ["updated_at", "2020-07-09 22:54:55.393507"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:54:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$fW5.EwwfnJxXi6Vnx5gtUeWCsbkuIMZdCE97b6wgA.ujxiPNDQQkW"], ["created_at", "2020-07-09 22:54:55.408476"], ["updated_at", "2020-07-09 22:54:55.408476"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:54:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.7ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 8.6ms | Allocations: 1825) Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms | Allocations: 2553)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:54:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:54:55.440962"], ["updated_at", "2020-07-09 22:54:55.440962"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$v1ZmqrW.arAmpHpeHLurH.928QRWDeR1Y0pEbg2HoOs0BBmsdkXk."], ["created_at", "2020-07-09 22:54:55.444606"], ["updated_at", "2020-07-09 22:54:55.444606"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:54:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:54:55.458434"], ["updated_at", "2020-07-09 22:54:55.458434"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:54:55 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.3ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.1ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$LrCK.kH2IIv7WlSxROatwuDoRsyDv3zIVeB3x52y6eGVTuMt6pRuu"], ["created_at", "2020-07-09 22:55:48.455617"], ["updated_at", "2020-07-09 22:55:48.455617"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 22:55:48.462124"], ["updated_at", "2020-07-09 22:55:48.462124"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:55:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 13.8ms | Allocations: 6183) Completed 200 OK in 24ms (Views: 18.1ms | ActiveRecord: 0.2ms | Allocations: 10099)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:55:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$F0uX3zjfLeExpqDj9cF2.eWXvqybmmYZyY9TRbaBtiJoeAI0nXaEa"], ["created_at", "2020-07-09 22:55:48.526654"], ["updated_at", "2020-07-09 22:55:48.526654"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:55:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 22:55:48.540697"], ["updated_at", "2020-07-09 22:55:48.540697"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 752) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:55:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$afXRXn13kEOci1BXTG.REuKkwOwmUaGCkwUc71GYfLU.70kDLV5Ju"], ["created_at", "2020-07-09 22:55:48.558941"], ["updated_at", "2020-07-09 22:55:48.558941"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:55:48.560443"], ["updated_at", "2020-07-09 22:55:48.560443"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:55:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 22:55:48.568062"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 1002) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:55:48.578270"], ["updated_at", "2020-07-09 22:55:48.578270"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:55:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$.kreRHnhJxvpENPCVvoljOVPCkU/XqSU2jdrZ4IJhe2EuJBPMY3TO"], ["created_at", "2020-07-09 22:55:48.593880"], ["updated_at", "2020-07-09 22:55:48.593880"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:55:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.7ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 8.9ms | Allocations: 1825) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms | Allocations: 2553)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:55:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:55:48.626773"], ["updated_at", "2020-07-09 22:55:48.626773"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$T.fnPuJpDBDlI53AYbHYJuskn7dsyWpm8RGB2tsVv.7WER7U6LwjO"], ["created_at", "2020-07-09 22:55:48.630605"], ["updated_at", "2020-07-09 22:55:48.630605"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:55:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:55:48.646443"], ["updated_at", "2020-07-09 22:55:48.646443"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:55:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.2ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.4ms) DELETE FROM "feature_toggles";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (1.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.1ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:58:32.258455"], ["updated_at", "2020-07-09 22:58:32.258455"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:58:32 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 7ms (ActiveRecord: 0.0ms | Allocations: 1325)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:58:32.297393"], ["updated_at", "2020-07-09 22:58:32.297393"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$TsR10hXKMRx1eSAmEHUZeO/9YABukG/70.LwRsxnoRKr6TSMof0wK"], ["created_at", "2020-07-09 22:58:32.314001"], ["updated_at", "2020-07-09 22:58:32.314001"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:58:32 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 940)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$5O1ZK6W0Vm3ffPvmmfyMBeaEIWZlL2LWXyq7YgOH2yGfv.TtpRIGu"], ["created_at", "2020-07-09 22:58:32.331757"], ["updated_at", "2020-07-09 22:58:32.331757"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:58:32 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.7ms | Allocations: 164) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 10.9ms | Allocations: 3588) Completed 200 OK in 20ms (Views: 16.7ms | ActiveRecord: 0.0ms | Allocations: 6163)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:58:32 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$ffGVjK21BnIbDCYRjxMnY.2X4Qn.aRycIAjxPOvzBCF893Uy9xj9y"], ["created_at", "2020-07-09 22:58:32.376164"], ["updated_at", "2020-07-09 22:58:32.376164"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:58:32.377620"], ["updated_at", "2020-07-09 22:58:32.377620"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:58:32 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 22:58:32.391739"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 871) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.5ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:58:32.398241"], ["updated_at", "2020-07-09 22:58:32.398241"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:58:32 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$V7js610S5CUy2XLp4VuPuu25D6Jxw.dHhRAZdIscoI/rikgU1YT/a"], ["created_at", "2020-07-09 22:58:32.414178"], ["updated_at", "2020-07-09 22:58:32.414178"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:58:32 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 22:58:32.424750"], ["updated_at", "2020-07-09 22:58:32.424750"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 731) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:58:32 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$1TCVt5GzetYx84QZuQXfve5dUvV4850sKd.tV6t4fOQlKvZhVpUrm"], ["created_at", "2020-07-09 22:58:32.444923"], ["updated_at", "2020-07-09 22:58:32.444923"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 22:58:32.447136"], ["updated_at", "2020-07-09 22:58:32.447136"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:58:32 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 6.4ms | Allocations: 1222) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.2ms | Allocations: 1982)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:58:32 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (1.2ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.3ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.1ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:58:47.962960"], ["updated_at", "2020-07-09 22:58:47.962960"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$zeNKQvypyFJvmtoCH3HPt.qqT5gKbS39suawSSnZ.7jfR2Mo6sHNK"], ["created_at", "2020-07-09 22:58:47.977955"], ["updated_at", "2020-07-09 22:58:47.977955"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:58:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 5ms (ActiveRecord: 0.2ms | Allocations: 2101)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:58:48.012014"], ["updated_at", "2020-07-09 22:58:48.012014"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:58:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$AdHb2nz1dvuAAOhcWVdUJuL/JI6gKQt4uP3nCZmXUb5dMFueaElZC"], ["created_at", "2020-07-09 22:58:48.034007"], ["updated_at", "2020-07-09 22:58:48.034007"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:58:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.6ms | Allocations: 164) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 12.6ms | Allocations: 3588) Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 0.0ms | Allocations: 6163)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-09 23:58:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$hcQtvaqx2TDU3PFt.utmdeOUme8zB/oUyFwR3WdYBIDJZVFehSSWK"], ["created_at", "2020-07-09 22:58:48.077725"], ["updated_at", "2020-07-09 22:58:48.077725"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:58:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 22:58:48.092381"], ["updated_at", "2020-07-09 22:58:48.092381"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 7ms (ActiveRecord: 0.3ms | Allocations: 737) FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:58:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:58:48.110574"], ["updated_at", "2020-07-09 22:58:48.110574"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:58:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$tsSnvbBV.lagamW2UIrQG.IaPBaLylMajUAOHbTX6VNrP6GEOreSu"], ["created_at", "2020-07-09 22:58:48.126503"], ["updated_at", "2020-07-09 22:58:48.126503"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 22:58:48.128319"], ["updated_at", "2020-07-09 22:58:48.128319"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-09 23:58:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 22:58:48.137451"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 865) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:58:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$/PXdvt9kfx8KgL.W2I0UGumkTHU5zw1nFzKA.Eb3RbdUkAaBooh12"], ["created_at", "2020-07-09 22:58:48.158137"], ["updated_at", "2020-07-09 22:58:48.158137"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 22:58:48.160136"], ["updated_at", "2020-07-09 22:58:48.160136"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-09 23:58:48 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 4.5ms | Allocations: 1222) Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.1ms | Allocations: 1981)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.2ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) PRAGMA foreign_keys  (0.1ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.9ms) DELETE FROM "feature_toggles";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$aMnQP/Z2DK73zeNt13iEhu/2N9BdOqbH77U/mrxiElwHYe5MAFCrK"], ["created_at", "2020-07-09 23:00:34.902839"], ["updated_at", "2020-07-09 23:00:34.902839"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 23:00:34.908874"], ["updated_at", "2020-07-09 23:00:34.908874"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-10 00:00:34 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-09 23:00:34.936283"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 6ms (ActiveRecord: 0.3ms | Allocations: 2375) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 23:00:34.945098"], ["updated_at", "2020-07-09 23:00:34.945098"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-10 00:00:34 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-10 00:00:34 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$gX1wDpvUEUt1.4b3ei6.w.Pxvd.Iaxu6HKgfuTtUMCAdz8ygW57H."], ["created_at", "2020-07-09 23:00:34.975538"], ["updated_at", "2020-07-09 23:00:34.975538"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-10 00:00:34 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.7ms | Allocations: 164) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 11.3ms | Allocations: 3587) Completed 200 OK in 20ms (Views: 16.7ms | ActiveRecord: 0.0ms | Allocations: 6162)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 23:00:35.005445"], ["updated_at", "2020-07-09 23:00:35.005445"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$JqYWsge4LUtshtSqiYhaNezu1.DKW.qFKdMtHXOIcC/zsV5lE1Z06"], ["created_at", "2020-07-09 23:00:35.008805"], ["updated_at", "2020-07-09 23:00:35.008805"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-10 00:00:35 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 609)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-09 23:00:35.029711"], ["updated_at", "2020-07-09 23:00:35.029711"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-10 00:00:35 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$wwcukjloxJ6lMzKM24gSZ.oniOL8h5LEoX5ooYqHY37vUpgzcKhbm"], ["created_at", "2020-07-09 23:00:35.044149"], ["updated_at", "2020-07-09 23:00:35.044149"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-10 00:00:35 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-09 23:00:35.055058"], ["updated_at", "2020-07-09 23:00:35.055058"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 731) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-10 00:00:35 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$aqy.HJyw9cVtBBtcg3e2peO6efLT8svSGMyb3G0b2eMuE.gGVWcei"], ["created_at", "2020-07-09 23:00:35.072879"], ["updated_at", "2020-07-09 23:00:35.072879"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-09 23:00:35.074753"], ["updated_at", "2020-07-09 23:00:35.074753"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-10 00:00:35 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 5.7ms | Allocations: 1222) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.2ms | Allocations: 1982)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-10 00:00:35 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (1.7ms) SELECT sqlite_version(*)  (1.4ms) SELECT sqlite_version(*)  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT sqlite_version(*)  (0.1ms) DROP TABLE IF EXISTS "feature_toggles"  (1.0ms) CREATE TABLE "feature_toggles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "active" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) DROP TABLE IF EXISTS "users"  (0.9ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.7ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20200624115316)  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20200623125321);   (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-10 14:55:34.701167"], ["updated_at", "2020-07-10 14:55:34.701167"]]  (0.5ms) commit transaction ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]]  (0.0ms) begin transaction ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "8dfe9119086661dc796fa00452dc81ff692523f5"], ["created_at", "2020-07-10 14:55:34.704541"], ["updated_at", "2020-07-10 14:55:34.704541"]]  (0.5ms) commit transaction  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.2ms) SELECT sqlite_version(*)  (1.1ms) SELECT sqlite_version(*)  (0.0ms) SELECT sqlite_version(*)  (0.0ms) SELECT sqlite_version(*)  (0.1ms) DROP TABLE IF EXISTS "feature_toggles"  (1.1ms) CREATE TABLE "feature_toggles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "active" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) DROP TABLE IF EXISTS "users"  (0.9ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20200624115316)  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20200623125321);   (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.0ms) begin transaction ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-13 23:30:21.837653"], ["updated_at", "2020-07-13 23:30:21.837653"]]  (0.6ms) commit transaction ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]]  (0.0ms) begin transaction ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "8dfe9119086661dc796fa00452dc81ff692523f5"], ["created_at", "2020-07-13 23:30:21.840514"], ["updated_at", "2020-07-13 23:30:21.840514"]]  (0.6ms) commit transaction  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.5ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.1ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:33:03.326748"], ["updated_at", "2020-07-13 23:33:03.326748"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:33:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 10ms (ActiveRecord: 0.0ms | Allocations: 1325)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$0F9I7zc4ZxScwAvM4BYwxeCYyH1E.Eu6fPNkGm06pe1QlkIRrBleu"], ["created_at", "2020-07-13 23:33:03.420924"], ["updated_at", "2020-07-13 23:33:03.420924"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:33:03.422874"], ["updated_at", "2020-07-13 23:33:03.422874"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:33:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-13 23:33:03.433245"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 6ms (ActiveRecord: 0.4ms | Allocations: 1211) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:33:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$hw3pUQWkg7QzTZ80nIxpM.TZv89fnZeoIRkam47G0VWsys5izPia6"], ["created_at", "2020-07-13 23:33:03.453146"], ["updated_at", "2020-07-13 23:33:03.453146"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:33:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-13 23:33:03.464214"], ["updated_at", "2020-07-13 23:33:03.464214"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 4ms (ActiveRecord: 0.5ms | Allocations: 728) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$kL.WMH5/50hYyjbmeAZ6/OPBjflmpLjgRZ61xdDavV0OuDCPzRf3m"], ["created_at", "2020-07-13 23:33:03.475085"], ["updated_at", "2020-07-13 23:33:03.475085"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-13 23:33:03.476874"], ["updated_at", "2020-07-13 23:33:03.476874"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:33:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 15.2ms | Allocations: 2983) Completed 200 OK in 29ms (Views: 22.7ms | ActiveRecord: 0.2ms | Allocations: 5586)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:33:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:33:03.525568"], ["updated_at", "2020-07-13 23:33:03.525568"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:33:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:33:03.537118"], ["updated_at", "2020-07-13 23:33:03.537118"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$PwXtaRyuj5CJqWOLfePfyOSEiKpoFVHDec/9cCnCJdwKmL/BdFBJO"], ["created_at", "2020-07-13 23:33:03.541589"], ["updated_at", "2020-07-13 23:33:03.541589"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:33:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.5ms | Allocations: 606)  (0.2ms) SELECT COUNT(*) FROM "feature_toggles"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$BhDeWMBfe/vbO9tg3xdsCOpvARevKpyzHPMphHU9hwBE.rfgHO5t6"], ["created_at", "2020-07-13 23:33:03.557269"], ["updated_at", "2020-07-13 23:33:03.557269"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 00:33:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 1.6ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 9.4ms | Allocations: 1821) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms | Allocations: 2543)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 00:33:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (1.2ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.4ms) SELECT sqlite_version(*)  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) PRAGMA foreign_keys  (0.1ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.1ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:34:25 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 8ms (ActiveRecord: 0.0ms | Allocations: 1327)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$rqh.bnkDwhPLeCp127SC2e9CnV92nu5HG5IkZyqgf8cGG5BHuk/im"], ["created_at", "2020-07-13 23:34:26.050406"], ["updated_at", "2020-07-13 23:34:26.050406"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:34:26 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-13 23:34:26.073198"], ["updated_at", "2020-07-13 23:34:26.073198"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 8ms (ActiveRecord: 0.5ms | Allocations: 3384) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 00:34:26 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$VaTIZExRMPNzLCKk5JlJL.FMJbfZq4MmzXphL12oDV17e4G7lgQFi"], ["created_at", "2020-07-13 23:34:26.090720"], ["updated_at", "2020-07-13 23:34:26.090720"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 00:34:26 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.8ms | Allocations: 164) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 14.6ms | Allocations: 3587) Completed 200 OK in 25ms (Views: 21.7ms | ActiveRecord: 0.0ms | Allocations: 6160)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:34:26 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$HsRLUJwD3dcWvz2IpyauyOF2I6aM3cDLLpVIHY843cV65QZIJBul."], ["created_at", "2020-07-13 23:34:26.136198"], ["updated_at", "2020-07-13 23:34:26.136198"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-13 23:34:26.137940"], ["updated_at", "2020-07-13 23:34:26.137940"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:34:26 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 4.5ms | Allocations: 1221) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.1ms | Allocations: 1974)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:34:26.156474"], ["updated_at", "2020-07-13 23:34:26.156474"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$MEmM16PXtzHPUzMi69fEuOSJbi6e/miWZeDDaL6eJUDke3AsLu/XG"], ["created_at", "2020-07-13 23:34:26.161162"], ["updated_at", "2020-07-13 23:34:26.161162"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:34:26 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 743)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:34:26.172195"], ["updated_at", "2020-07-13 23:34:26.172195"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:34:26 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$xLb4PnTCQNB5sP/AywgxoOiEuUaRpI8ialkgR8GHDHbPTKvbCMHUG"], ["created_at", "2020-07-13 23:34:26.186391"], ["updated_at", "2020-07-13 23:34:26.186391"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:34:26.188141"], ["updated_at", "2020-07-13 23:34:26.188141"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:34:26 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-13 23:34:26.194351"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 862) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:34:26.201535"], ["updated_at", "2020-07-13 23:34:26.201535"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:34:26 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.3ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.3ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$K7n34rK.ws3J7Xw.bC8TNOdBrCYTbtVxLaNvjkmv1utsHuNd.UWoS"], ["created_at", "2020-07-13 23:36:30.464093"], ["updated_at", "2020-07-13 23:36:30.464093"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:36:30.473011"], ["updated_at", "2020-07-13 23:36:30.473011"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:36:30 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-13 23:36:30.507957"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 7ms (ActiveRecord: 0.3ms | Allocations: 2372) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:36:30.523350"], ["updated_at", "2020-07-13 23:36:30.523350"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:36:30 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:36:30.546674"], ["updated_at", "2020-07-13 23:36:30.546674"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:36:30 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:36:30.557881"], ["updated_at", "2020-07-13 23:36:30.557881"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$VSnTuzI6oP/dRLT0B71YlOKwTJiWIPtCm0r3dnpag9c0Iwgg.7bAa"], ["created_at", "2020-07-13 23:36:30.561376"], ["updated_at", "2020-07-13 23:36:30.561376"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:36:30 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.5ms | Allocations: 606)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$KK4H1Z2jtr6tnqFoh21ejuaHgp71whKfLYfGxv.eqMvoUQR273NRa"], ["created_at", "2020-07-13 23:36:30.578180"], ["updated_at", "2020-07-13 23:36:30.578180"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 00:36:30 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.8ms | Allocations: 164) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 14.2ms | Allocations: 3587) Completed 200 OK in 24ms (Views: 20.4ms | ActiveRecord: 0.0ms | Allocations: 6159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 00:36:30 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:36:30 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$ODv51OIc7ZijnjW75vvs7eBmnM79dU5ABIZhIOe0wtdXQr058O.DS"], ["created_at", "2020-07-13 23:36:30.634928"], ["updated_at", "2020-07-13 23:36:30.634928"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-13 23:36:30.636633"], ["updated_at", "2020-07-13 23:36:30.636633"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:36:30 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 3.9ms | Allocations: 1218) Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.1ms | Allocations: 1980)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$ToaYEoSiFcTRMWjNP1cliO422Z5dtWM1Tn8e8fEgIBk72BdIfw9NS"], ["created_at", "2020-07-13 23:36:30.658235"], ["updated_at", "2020-07-13 23:36:30.658235"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:36:30 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-13 23:36:30.667301"], ["updated_at", "2020-07-13 23:36:30.667301"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 728) FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:36:30 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (1.2ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.2ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.1ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$XBNIyW6gEgoiyBXjRXI5u.1KAHapXBkLBq2mYv5i0zfLUGv/R7pma"], ["created_at", "2020-07-13 23:46:03.616675"], ["updated_at", "2020-07-13 23:46:03.616675"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:46:03.625080"], ["updated_at", "2020-07-13 23:46:03.625080"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:46:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-13 23:46:03.654488"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 6ms (ActiveRecord: 0.3ms | Allocations: 2372) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:46:03.668552"], ["updated_at", "2020-07-13 23:46:03.668552"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:46:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:46:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$V70gysde..yfhTlgYkajeeoytdEi5fgyIVNbMqh9luTGGcSJZyjpq"], ["created_at", "2020-07-13 23:46:03.697726"], ["updated_at", "2020-07-13 23:46:03.697726"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-13 23:46:03.699371"], ["updated_at", "2020-07-13 23:46:03.699371"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:46:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 12.0ms | Allocations: 2985) Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 0.2ms | Allocations: 5598)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$ud9NWczMhuUo4QCGNFnZl.85Cg6N.wSOw6Oyk3oQXcSLQqlHH3WPC"], ["created_at", "2020-07-13 23:46:03.733244"], ["updated_at", "2020-07-13 23:46:03.733244"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 00:46:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.8ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 8.0ms | Allocations: 1820) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms | Allocations: 2542)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 00:46:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:46:03.761643"], ["updated_at", "2020-07-13 23:46:03.761643"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:46:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.4ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:46:03.772443"], ["updated_at", "2020-07-13 23:46:03.772443"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$PexJdwgda4z0Kh7F5Y6YJ.cG5FodjEJ9TO1VRMsxIB/Ss83fh6Eam"], ["created_at", "2020-07-13 23:46:03.776618"], ["updated_at", "2020-07-13 23:46:03.776618"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:46:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 606)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$1lr/CcRRp9yCAfDN4QFXKOeCBJBT12glWadOIgO8kZLOjlLuOi/gy"], ["created_at", "2020-07-13 23:46:03.795280"], ["updated_at", "2020-07-13 23:46:03.795280"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:46:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-13 23:46:03.804310"], ["updated_at", "2020-07-13 23:46:03.804310"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 728) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:46:03 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (1.2ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.0ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.3ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:51:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 9ms (ActiveRecord: 0.0ms | Allocations: 1324)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$eYkurh9msmTMieN0L0fdNe8DmfM6V94se4dab74XgnwaLZkANrKWq"], ["created_at", "2020-07-13 23:51:47.360331"], ["updated_at", "2020-07-13 23:51:47.360331"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-13 23:51:47.375849"], ["updated_at", "2020-07-13 23:51:47.375849"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:51:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 8.9ms | Allocations: 3017) Completed 200 OK in 21ms (Views: 15.7ms | ActiveRecord: 0.1ms | Allocations: 5788)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 00:51:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$MoSDWETfEiLCc/blR6equOTvAZ7nj5LSZN2D1STqibr3JtRY1OpgG"], ["created_at", "2020-07-13 23:51:47.418082"], ["updated_at", "2020-07-13 23:51:47.418082"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 00:51:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.7ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 6.4ms | Allocations: 1821) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms | Allocations: 2543)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$HiN988OmNUS8375A76IbjuW/6aBRuo3Dyzn7mYhBcmG3ZfTBbDHVC"], ["created_at", "2020-07-13 23:51:47.438779"], ["updated_at", "2020-07-13 23:51:47.438779"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:51:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-13 23:51:47.456279"], ["updated_at", "2020-07-13 23:51:47.456279"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 749) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 00:51:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$nNOCD4S1ZcdsbOsBvUCynuHxJAVcg7M29YxvLXuzyB0YvhMMjcL.a"], ["created_at", "2020-07-13 23:51:47.478121"], ["updated_at", "2020-07-13 23:51:47.478121"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:51:47.479649"], ["updated_at", "2020-07-13 23:51:47.479649"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:51:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-13 23:51:47.487228"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 999) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.5ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:51:47.494829"], ["updated_at", "2020-07-13 23:51:47.494829"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:51:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:51:47.507940"], ["updated_at", "2020-07-13 23:51:47.507940"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$iQiGO0b.Iew036gitpn3VelH0gIaJ/7/cUas0tyZeXgPRi1TvEFPS"], ["created_at", "2020-07-13 23:51:47.511647"], ["updated_at", "2020-07-13 23:51:47.511647"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:51:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 606)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.5ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-13 23:51:47.527225"], ["updated_at", "2020-07-13 23:51:47.527225"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 00:51:47 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.0ms) SELECT sqlite_version(*)  (1.2ms) SELECT sqlite_version(*)  (0.0ms) SELECT sqlite_version(*)  (0.0ms) SELECT sqlite_version(*)  (0.1ms) DROP TABLE IF EXISTS "feature_toggles"  (1.3ms) CREATE TABLE "feature_toggles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "active" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) DROP TABLE IF EXISTS "users"  (0.7ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.7ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES (20200624115316)  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (20200623125321);   (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.0ms) begin transaction ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2020-07-14 00:07:28.125460"], ["updated_at", "2020-07-14 00:07:28.125460"]]  (0.6ms) commit transaction ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]]  (0.0ms) begin transaction ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "8dfe9119086661dc796fa00452dc81ff692523f5"], ["created_at", "2020-07-14 00:07:28.128214"], ["updated_at", "2020-07-14 00:07:28.128214"]]  (0.7ms) commit transaction  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.2ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 01:07:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 9ms (ActiveRecord: 0.0ms | Allocations: 1326)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$MKxBQuenKSqaIy8r9OMEZOaNwb0NiylRgsDv8xPGqLVpBNkeMy2Ua"], ["created_at", "2020-07-14 00:07:28.651780"], ["updated_at", "2020-07-14 00:07:28.651780"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 01:07:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.6ms | Allocations: 164) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 10.0ms | Allocations: 3597) Completed 200 OK in 33ms (Views: 15.3ms | ActiveRecord: 0.3ms | Allocations: 9336)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$vPgZwdpu5X1y6AoDqyQmDe1qA7bO5FkkPcZ6MUrg9lcj3bf4Ny8IW"], ["created_at", "2020-07-14 00:07:28.695466"], ["updated_at", "2020-07-14 00:07:28.695466"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 01:07:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-14 00:07:28.707772"], ["updated_at", "2020-07-14 00:07:28.707772"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 762) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 01:07:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-14 00:07:28.725394"], ["updated_at", "2020-07-14 00:07:28.725394"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 01:07:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-14 00:07:28.735711"], ["updated_at", "2020-07-14 00:07:28.735711"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$lILg2dajjXBNePH3C3brOuQp3ViFuNR659IDJM2WcEHbj.JHmyUD2"], ["created_at", "2020-07-14 00:07:28.740177"], ["updated_at", "2020-07-14 00:07:28.740177"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 01:07:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.3ms | Allocations: 746)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$cb1zgt3UTjbXkadSh9iUqeM0BwWSMI65Eqh2urllNcjn24Q4q9Bx6"], ["created_at", "2020-07-14 00:07:28.757288"], ["updated_at", "2020-07-14 00:07:28.757288"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-14 00:07:28.758816"], ["updated_at", "2020-07-14 00:07:28.758816"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 01:07:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 3.8ms | Allocations: 1218) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.1ms | Allocations: 1971)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 01:07:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.6ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-14 00:07:28.787547"], ["updated_at", "2020-07-14 00:07:28.787547"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 01:07:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$b5a/eVWyADYuYX5zDBda6OaTllsHNhG78C8xywJ8zrQjfdsMb/e66"], ["created_at", "2020-07-14 00:07:28.801916"], ["updated_at", "2020-07-14 00:07:28.801916"]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.2ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-14 00:07:28.803967"], ["updated_at", "2020-07-14 00:07:28.803967"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 01:07:28 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-14 00:07:28.813053"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 3ms (ActiveRecord: 0.4ms | Allocations: 862) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (1.5ms) SELECT sqlite_version(*)  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]  (0.1ms) SELECT sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) PRAGMA foreign_keys  (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.8ms) DELETE FROM "feature_toggles";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'feature_toggles';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-14 08:05:00.983207"], ["updated_at", "2020-07-14 08:05:00.983207"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user1@example.com"], ["LIMIT", 1]] User Create (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@example.com"], ["encrypted_password", "$2a$04$vXGM/qSMXqXuvIq54CLAt.1ly9XmCT1eqHjf4GzJEwd3OWYZa06UG"], ["created_at", "2020-07-14 08:05:01.006033"], ["updated_at", "2020-07-14 08:05:01.006033"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 09:05:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Destroy (0.1ms) DELETE FROM "feature_toggles" WHERE "feature_toggles"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 7ms (ActiveRecord: 0.3ms | Allocations: 2095)  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-14 08:05:01.066729"], ["updated_at", "2020-07-14 08:05:01.066729"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started DELETE "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 09:05:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#destroy as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms | Allocations: 159)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user2@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@example.com"], ["encrypted_password", "$2a$04$qXsRdPInI5NHIJ7kLhR3euu/kBj/MGkkuUkoLnuWc9qafHDA.xzEq"], ["created_at", "2020-07-14 08:05:01.110944"], ["updated_at", "2020-07-14 08:05:01.110944"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "a_feature_toggle"], ["active", 0], ["created_at", "2020-07-14 08:05:01.112289"], ["updated_at", "2020-07-14 08:05:01.112289"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 09:05:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application FeatureToggle Load (0.2ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."key" ASC Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/index.html.erb within layouts/application (Duration: 26.7ms | Allocations: 2988) Completed 200 OK in 35ms (Views: 31.9ms | ActiveRecord: 0.2ms | Allocations: 5600)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles" for 127.0.0.1 at 2020-07-14 09:05:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#index as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 09:05:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user3@example.com"], ["LIMIT", 1]] User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@example.com"], ["encrypted_password", "$2a$04$ndxvug.OlAHf5tZss526bO8FlKfv97tdXzu.nxR.0sWsv02paZIqa"], ["created_at", "2020-07-14 08:05:01.176822"], ["updated_at", "2020-07-14 08:05:01.176822"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "feature_toggles" Started POST "/feature-toggles" for 127.0.0.1 at 2020-07-14 09:05:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#create as HTML Parameters: {"feature_toggle"=>{"key"=>"test", "active"=>"1"}}  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test"], ["active", 1], ["created_at", "2020-07-14 08:05:01.183576"], ["updated_at", "2020-07-14 08:05:01.183576"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 734) FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" ORDER BY "feature_toggles"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "feature_toggles"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_2 User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user4@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@example.com"], ["encrypted_password", "$2a$04$RcGB4x9/cnHSpKcTaSaP/.051x2Iw5f2vVEzOyg9mFtwf3oB8PVee"], ["created_at", "2020-07-14 08:05:01.190912"], ["updated_at", "2020-07-14 08:05:01.190912"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 09:05:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Rendering /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/shared/_back.html.erb (Duration: 0.8ms | Allocations: 155) Rendered /Users/acruikshanks/projects/defra/defra-ruby-features/app/views/defra_ruby_features/feature_toggles/new.html.erb within layouts/application (Duration: 6.1ms | Allocations: 1820) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms | Allocations: 2542)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Started GET "/feature-toggles/new" for 127.0.0.1 at 2020-07-14 09:05:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.3ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-14 08:05:01.213922"], ["updated_at", "2020-07-14 08:05:01.213922"]]  (0.0ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 09:05:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"id"=>"1"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms | Allocations: 144)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_2 User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "user5@example.com"], ["LIMIT", 1]] User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@example.com"], ["encrypted_password", "$2a$04$KtQnryMeMZzoP6y.Mv6fqO3RMlqkob7JDzrNkmSp8rqQIT2VWklte"], ["created_at", "2020-07-14 08:05:01.230863"], ["updated_at", "2020-07-14 08:05:01.230863"]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 FeatureToggle Create (0.1ms) INSERT INTO "feature_toggles" ("key", "active", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "test-feature"], ["active", 0], ["created_at", "2020-07-14 08:05:01.232315"], ["updated_at", "2020-07-14 08:05:01.232315"]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Started PUT "/feature-toggles/1" for 127.0.0.1 at 2020-07-14 09:05:01 +0100 Processing by DefraRubyFeatures::FeatureTogglesController#update as HTML Parameters: {"feature_toggle"=>{"active"=>"1"}, "id"=>"1"} FeatureToggle Load (0.1ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 FeatureToggle Update (0.1ms) UPDATE "feature_toggles" SET "active" = ?, "updated_at" = ? WHERE "feature_toggles"."id" = ? [["active", 1], ["updated_at", "2020-07-14 08:05:01.238675"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://www.example.com/feature-toggles Completed 302 Found in 2ms (ActiveRecord: 0.3ms | Allocations: 862) FeatureToggle Load (0.0ms) SELECT "feature_toggles".* FROM "feature_toggles" WHERE "feature_toggles"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction